When you are finished using a bitmap, cursor, or icon you loaded without specifying the LR_SHARED flag, you can release its associated memory by calling one of the functions in the following table.
Resource Release function
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.
Thanks everyone, I found the problem...I mispelled the directory during one variable initialization. Thanks again for your help.
Everytime I run the code below (Visual Studio .NET 2003), it tells me that a debug assertion has failed. Then when I go into the code to debug it...it goes to "filecore.cpp" and points out the error in the following filecore.cpp function....
Its something about DAO can’t initialize, the error code is AFX_DAO_ERROR_ENGINE_INITIALIZATION , I can recall that we have to put something like initialization function before starting using DAO, is that right, but I can’t remember the syntax