Click to See Complete Forum and Search --> : How to use FreeResource in WinCE ?
Nocolor
June 8th, 2004, 10:25 PM
Hi,I am a programmer in China.I meet some trouble.
I am porting a project to WinCE,but FreeResource API is not supported in WinCE.I don't know how to replace it to achieve the same function.The resource loaded by LoadResource API is somewhat like a buffer in memory.So I need some help!
Thanks for your reply!!
Kheun
June 9th, 2004, 01:25 AM
See the remarks section from this MSDN link (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/freeresource.asp). You have to make the corresponding API call accordingly to the resource type.
Nocolor
June 9th, 2004, 10:57 PM
Thank you for your reply. In fact I have looked it up in MSDN. But the problem is the resource is loaded by LoadResource function. So I can't destroy them because they are not called by Create*** function.
Kheun
June 10th, 2004, 01:43 AM
I don't think you have much choices since the FreeResource() API has been obsoleted. Anyway, MSDN stated that the API has been replaced by those functions.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.