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…