Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/104675

From BetaArchive Wiki

FIX: TEMPLDEF Fails to Add #endif to NEWCOLL.H and NEWCOLL.INL

Q104675


The information in this article applies to: - The Microsoft Foundation Classes (MFC) included with: - Microsoft Visual C++ for Windows, versions 1.0, 1.5 ---------------------------------------------------------------------- SYMPTOMS ======== The 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' CAUSE ===== The 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 RESOLUTION ========== Add the lines shown above to the related files. STATUS ====== Microsoft 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

Keywords : kberrmsg kb16bitonly kbnokeyword kbMFC kbVC
Issue type : kbbug
Technology : kbAudDeveloper kbMFC


Last Reviewed: May 5, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.