FIX: TEMPLDEF Fails to Add #endif to NEWCOLL.H and NEWCOLL.INLLast reviewed: September 16, 1997Article ID: Q104675 |
The information in this article applies to:
SYMPTOMSThe MKCOLL.BAT batch file included with the TEMPLDEF sample creates two files, NEWCOLL.H and NEWCOLL.INL. If these files are used to replace AFXCOLL.H and AFXCOLL.INL, the following errors occur when compiling:
fatal error C1070: mismatched #if/#endif pair in file 'newcoll.h' fatal error C1070: mismatched #if/#endif pair in file 'newcoll.inl' CAUSEThe AFXCOLL2.H file in the \MSVC\MFC\SAMPLES\TEMPLDEF directory is missing the following line at the end of the file:
#endif //!__AFXCOLL_H__Also, the AFXCOLL2.INL file in the \MSVC\MFC\SAMPLES\TEMPLDEF directory is missing the the following line at the end of the file:
#endif //_AFXCOLL_INLINE RESOLUTIONAdd the lines shown above to the related files.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Foundation Classes (MFC) version 2.0 that shipped with Visual C++ for Windows, version 1.0. This problem has been fixed in the MFC version 2.5 that shipped with Visual C++ for Windows, version 1.5.
|
Additional query words: template TEMPLDEF.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |