不同的资源,方法有点不同。
Resource Release function
Accelerator table DestroyAcceleratorTable
Bitmap DeleteObject
Cursor DestroyCursor
Icon DestroyIcon
Menu DestroyMenu
Resource Release function
Accelerator table DestroyAcceleratorTable
Bitmap DeleteObject
Cursor DestroyCursor
Icon DestroyIcon
Menu DestroyMenu
http://www.csdn.net/Expert/topic/481/481079.shtm
Platform SDK: Windows User Interface
FreeResource
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
See Also
Resources Overview, Resource Functions
Accelerator table DestroyAcceleratorTable
Bitmap DeleteObject
Cursor DestroyCursor
Icon DestroyIcon
Menu DestroyMenu
但是不使用这些函数又该怎样释放读入的资源呢?