DLL ExitInstance()
I have a DLL written using MFC 2.0 on WIndows NT. When the client app attaches
to the DLL, the DLL's CWinDLL::InitInstance() method gets called, and all is
well with the world. However, when the application is closed, any code I have
in the CWinDLL destructor is run, but any code I place in
CWinDLL::ExitInstance() doesn't get called at all. If I write the DLL straight
SDK with LibMain(), the PROCESS_DETACH case gets called normally. Isn't
ExitInstance() just a wrapper for the PROCESS_DETACH case?