FIX: Alpha MFC Regular DLL Fails After Porting from IntelLast reviewed: September 19, 1997Article ID: Q166817 |
The information in this article applies to:
SYMPTOMSWhen moving a Visual C++ 4.x MFC regular DLL (_USRDLL) project from the Intel platform to the Alpha RISC platform you may run into one or more of a set of related problems. Some symptoms are:
CAUSEWhen you create the Alpha configuration from an existing Intel based configuration, the Visual C++ development environment does not copy the /D _USRDLL compiler flag. This problem does not cause compiler or linker errors. Without this symbol defined, the default non-MFC DllMain is used and MFC is not initialized.
RESOLUTIONMake sure that /D "_USRDLL" is in the compiler options for regular MFC DLLs. If not, add _USRDLL to the list of preprocessor definitions.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0.
REFERENCESFor more information covering MFC initialization in your Regular DLL, and other relevant topics, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q140850 TITLE : HOWTO: Converting DLLTRACE to Use MFC in Shared Library ARTICLE-ID: Q154126 TITLE : PRB: Using Extension DLL, Database/OLE/Sockets in Regular DLL(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Kelly Marie Ward, Microsoft Corporation
|
Additional query words: 4.1 4.2B AXP Digital
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |