首页 > 其他 > 详细

已经包含了#include <atlcom.h> #include <comutil.h>还是报错

时间:2015-07-13 20:33:22      阅读:387      评论:0      收藏:0      [点我收藏+]

 在WTL工程的.h中

#include <atlbase.h>
#include <atlcom.h>
#include <atlcomcli.h>
#include <atlctl.h>
#include <atlwin.h>
#include <comutil.h>

结果还是下面一堆错,为什么呢,因为你没有使用这个using namespace ATL; 加上这个下面错全部消失。

 

error C2061: syntax error : identifier ‘CComQIPtr‘

 error C2504: ‘CWindowImpl‘ : base class undefined

 error C2065: ‘CRegKey‘ : undeclared identifier

 error C2660: ‘SetWindowTextW‘ : function does not take 1 arguments

 error C2039: ‘SubclassWindow‘ : is not a member of ‘xxxxxx‘

已经包含了#include <atlcom.h> #include <comutil.h>还是报错

原文:http://www.cnblogs.com/yuzhould/p/4643579.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!