stdafx.cpp单独编译后,项目编译不能通过
程序本来可以运行的 ,我单独编译stdafx.cpp文件后,就出现这么多的错误,再怎么编译都不行了 StdAfx.obj - 102 error(s), 1 warning(s) 这是怎么回事啊?上网查了很多方法都没有解决。Compiling...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\include\comutil.h(791) : error C2327: '_ConnectionPtr::_variant_t' : member from enclosing class is not a type name, static, or enumerator
c:\program files\microsoft visual studio\vc98\include\comutil.h(792) : error C2327: '_ConnectionPtr::_variant_t' : member from enclosing class is not a type name, static, or enumerator
c:\program files\microsoft visual studio\vc98\include\comutil.h(793) : error C2327: '_ConnectionPtr::_variant_t' : member from enclosing class is not a type name, static, or enumerator
c:\program files\microsoft visual studio\vc98\include\comutil.h(795) : error C2327: '_ConnectionPtr::_variant_t' : member from enclosing class is not a type name, static, or enumerator
c:\program files\microsoft visual studio\vc98\include\comutil.h(797) : error C2327: '_ConnectionPtr::_variant_t' : member from enclosing class is not a type name, static, or enumerator
..............................................................
c:\program files\microsoft visual studio\vc98\include\comutil.h(1001) : error C2673: '_variant_t' : global functions do not have 'this' pointers
c:\program files\microsoft visual studio\vc98\include\comutil.h(1001) : error C2227: left of '->vt' must point to class/struct/union
c:\program files\microsoft visual studio\vc98\include\comutil.h(1004) : error C2673: '_variant_t' : global functions do not have 'this' pointers
c:\program files\microsoft visual studio\vc98\include\comutil.h(1004) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
StdAfx.obj - 102 error(s), 1 warning(s)