不同的资源,方法有点不同。
Resource Release function 
Accelerator table        DestroyAcceleratorTable 
Bitmap                   DeleteObject 
Cursor                   DestroyCursor 
Icon                     DestroyIcon 
Menu                     DestroyMenu 

解决方案 »

  1.   

    帮忙Up
    http://www.csdn.net/Expert/topic/481/481079.shtm
      

  2.   

    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. 
      

  3.   

    The system automatically deletes these resources when the process that created them terminates, however, calling the appropriate function saves memory and decreases the size of the process's working set. 
      

  4.   

    我是想要立即删除,因为数据量比较大,而且是二进制串,不是标准类型的资源,所以不能使用DeleteObject ,DestroyCursor,DestroyIcon,DestroyMenu等函数.
      

  5.   

      
     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 
      

  6.   

    可能是大家没理解到我的意思,我的是一个自定义资源(一个二进制串),不是一个位图或是图标什么的,所以也就无从说到
    Accelerator table DestroyAcceleratorTable 
    Bitmap DeleteObject 
    Cursor DestroyCursor 
    Icon DestroyIcon 
    Menu DestroyMenu
    但是不使用这些函数又该怎样释放读入的资源呢?