首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

CComPtr未定义;atlcom.h requires atlbase.h to be includ解决方案

2012-04-09 
CComPtr未定义;atlcom.h requires atlbase.h to be includ刚开始研究directshow;仿照directsh例子amcap写

CComPtr未定义;atlcom.h requires atlbase.h to be includ
刚开始研究directshow;
仿照directsh例子amcap写的;
代码贴上去后出现很多CComPtr CComQIPtr未定义;
增加头文件:
extern CComModule _Module; 
#include <atlcom.h>  
#include <atlhost.h> 
#include <atlctl.h>
后,出现新的问题:
 atlcom.h requires atlbase.h to be included first
等VC98库里文件的问题;
路径设置的没问题,自己不确定问题在哪里,
希望高手指点下!



[解决办法]
调整一下include的次序
[解决办法]
extern CComModule _Module;
 
#include <atlhost.h>
#include <atlctl.h>
#include <atlcom.h>

热点排行