The information in this article applies to:
SYMPTOMSWhen building an Active Template Library (ATL) COM EXE server on a machine running Windows 95, you might get the message box that your server is linked to missing export from OLE32.DLL : CoSuspendClassObjects. CAUSE_WIN32_WINNT is defined in the Stdafx.h file and the problem is caused by the following code in the generated project source file:
It is caused by the definition of _WIN32_WINNT in Stdafx.h. In ATL 1.1 for
Visual C++ 4.2, this was not defined automatically, so users had to define
it themselves if they were using Windows NT 4.0 or Windows 95 with DCOM.
The majority of people will be targeting Windows NT 4.0 or Windows 95 with
DCOM, so it is automatically defined.
RESOLUTIONIf you want to develop under Windows 95, you can simply remove the macro from the generated Stdafx.h file. The problem also goes away when DCOM is installed on Windows 95. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
Linking....Then the message box pops up informing you that the server EXE is linked to missing export OLE32.DLL : CoSuspendClassObjects. Additional query words: kbATL210 kbATL300 CoSuspendClassObjects kbfasttip kbctrl kbserver kbinternet
Keywords : kbATL210 kbCOMt kbRegistry kbWinOS95 kbATL300 kbGrpMFCATL |
Last Reviewed: November 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |