error C2065: CoInitializeEx' : undeclared identifier 解决方法
来源:互联网 发布:数据采集与无线传输 编辑:程序博客网 时间:2024/05/22 03:14
CoInitializeEx 编译出错的解决办法
1 包含头文件 #include<objbase.h>
2 在包含前定义 #define _WIN32_DCOM
3 在stdafx.h中定义 #define _WIN32_WINNT 0x0500 (放在#define VC_EXTRALEAN 的下一行就可以了)
4 连接程序时加上 ole32.lib (有时不需要,要看编译器默认是否包含)
感谢:
http://blog.csdn.net/nanfeiyannan/article/details/6549235
http://hi.baidu.com/dzjqvztpvzhitue/item/5768228442cc32eae496e0fa
- error C2065: 'CoInitializeEx' : undeclared identifier; 解决方法
- error C2065: CoInitializeEx' : undeclared identifier 解决方法
- error C2065: CoInitializeEx' : undeclared identifier 解决方法
- error C2065: CoInitializeEx' : undeclared identifier 解决方法
- error C2065: : undeclared identifier 解决方法
- vector 解决方法 error C2065: 'vector' : undeclared identifier
- vector 解决方法 error C2065: 'vector' : undeclared identifier
- error C2065: 'IDD_MONDATAREPLYDLG' : undeclared identifier解决方法
- error C2065: '_beginthread' : undeclared identifier
- error C2065: 'IDD_SHOWINFODLG' : undeclared identifier
- error C2065: 'CComVariant' : undeclared identifier
- error C2065: 'CArchiveStream' : undeclared identifier
- error C2065: 'getCmdBuf1' : undeclared identifier
- error C2065: 'DEBUG_NEW' : undeclared identifier?
- error C2065: 'NULL' : undeclared identifier
- error C2065: 'pcap_findalldevs_ex' : undeclared identifier
- error C2065: 'WM_SETMESSAGESTRING' : undeclared identifier
- error C2065: 'DirectInputCreate' : undeclared identifier
- SQL2005数据库链接注意问题
- windows xp 下使用FileZilla密钥
- Apc缓存Opcode
- memcpy
- 角点&弥散圆&景深
- error C2065: CoInitializeEx' : undeclared identifier 解决方法
- vs2010 添加MSDN本地帮助
- 100本名著浓缩而成的100句话
- 关系型数据库基础 第二章
- ios输入的数字如果前面有0,保留去掉0之后的数据
- 如何写任务计划
- 贝叶斯推断及其互联网应用(一):定理简介
- eclipse开发好的项目 部署到Tomcat的过程------->待确认!
- Android基础之文件操作