The information in this article applies to:
SYMPTOMS
Under Visual C++ 6.0 Microsoft Foundation Classes (MFC), compiling code
related to the IActiveDesktop interface will fail with multiple errors,
including an "undeclared identifier" for LPACTIVEDESKTOP.
CAUSE
When an MFC application includes the Stdafx.h header file, the file
*\Vc98\Mfc\Include\Afxdisp.h is included by default. Within Afxdisp.h the
file Shlobj.h (required for ActiveDesktop) is included. But at this point,
Wininet.h has not been included, so certain portions of Shlobj.h are not
correctly initialized for ActiveDesktop support.
RESOLUTIONAdd a #include for the Wininet.h header to the Stdafx.h precompiled header file, just above the Afxdisp.h include. Here's an example of Stdafx.h:
After correcting Stdafx.h, rebuild the entire project to ensure that the
precompiled header is re-compiled.
Additional query words:
Keywords : kbActiveDesktop kbIE400 kbIE401 kbVC600 kbIE401sp1 kbIE500 |
Last Reviewed: April 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |