| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 435 人关注过本帖
标题:stdafx.cpp单独编译后,项目编译不能通过
只看楼主 加入收藏
SameYouF
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-9-11
收藏
 问题点数:0 回复次数:1 
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)
搜索更多相关主题的帖子: microsoft class include warning member 
2011-09-11 16:44
SameYouF
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-9-11
收藏
得分:0 
我刚才用MFC建了一个Dialog,然后加载动态链接库#import"C:\Documents and Settings\Administrator\桌面\msado15.dll"(我把msado15.dll复制到桌面上了)右击stdafx.cpp
"compile stdafx.cpp"结果出现同样的错误 . 大家帮忙看一下。
2011-09-11 22:11
快速回复:stdafx.cpp单独编译后,项目编译不能通过
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034926 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved