Advertisement

freeing custom Resources

Started by July 14, 2000 11:50 PM
1 comment, last by Lars W. 24 years, 5 months ago
Hi Does anybody know how to free custom Resources, that have been loaded. There is a FreeResource Method, but it is obsolete. Can this still be used to free Resources, or is there an other way to release the Memory, resources occupy in Memory ? Lars
--------> http://www.larswolter.de <---------
The FreeResource function is obsolete. It is provided only for compatibility with 16-bit Windows. It is not necessary for Win32-based applications to free resources loaded by using the LoadResource function. A resource is automatically freed when its module is unloaded.

To save memory and decrease the size of your process''s working set, Win32-based applications should release the memory associated with resources by calling the following functions.

    // Resource            Release function// -----------------   ------------------------------// Accelerator table   DestroyAcceleratorTable // Bitmap              DeleteObject // Cursor              DestroyCursor // Icon                DestroyIcon // Menu                DestroyMenu     

// CHRIS [win32mfc]
Advertisement
What a fine copy out of the documentation...
I know that, but i have an Custom Resource which has no default name and no functions to Destroy it, at least there is non specified in the docs.

Lars
--------> http://www.larswolter.de <---------

This topic is closed to new replies.

Advertisement