为什么自己写的类不能加入到MFC的工程中?
Vanyg 2002-04-22 10:55:58 我自己写了一个类,在非MFC的工程中一切正常。
但当加入到一个MFC的工程中时(我是选“Add file to project”),
就会出现错误:
fatal error C1010: unexpected end of file while looking for precompiled header directive
MSDN解释是:
unexpected end of file while looking for precompiled header directive
A precompiled header was specified, but it did not contain a precompiled header directive.
This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.
请那位大牛帮助一下。