关于comip.h(690)./comip.h(195) 编译错误的修改
来源:互联网 发布:2017年气象灾害数据 编辑:程序博客网 时间:2024/06/15 21:38
最近做一个KTV点歌系统, 编译时发现两个错误,网上找了好久,无意中看到解决方法,编译通过了.
c:/program files/microsoft visual studio/vc98/include/comip.h(690) : error C2227: left of '->QueryInterface' must point to class/struct/union
c:/program files/microsoft visual studio/vc98/include/comip.h(195) : see reference to function template instantiation 'long __thiscall _com_ptr_t<class _com_IIID<struct _Connection,&struct __s_GUID _GUID_00000550_0000_0010_8000_00aa006d2ea4
> >::_QueryInterface(long *const & )' being compiled
修改程序中的bool 类型为BOOL,因为我程序中函数返回值是BOOL,而代码中是return true/false;应该改为 return TRUE/FALSE.
所有函数的返回值都对应后就OK了.
- 关于comip.h(690)./comip.h(195) 编译错误的修改
- 程序出错comip.h指向if (m_pInterface != NULL){m_pInterface->Release();}
- [内核源码][编译] 关于openssl/opensslv.h错误的解决方案
- 修改.h文件引起的编译问题
- 关于<Windows.h>和<afx.h>发生错误的解决办法
- linux 关于编译模块缺少config.h而产生错误的问题
- 关于Linux(ubantu12.04)下编译错误mysql.h找不到的问题
- 编译错误小记 - fcntl2.h
- 编译错误 winnt.h(236)
- 内核编译,coda.h错误
- php 编译错误 mcrypt.h
- sphelper.h编译错误解决方案
- GraphChi编译错误 zlib.h
- 使用winsock2.h可能出现的两种编译错误
- 使用winsock2.h可能出现的两种编译错误
- 引用Iphlpapi.h时发生的编译错误
- 使用winsock2.h可能出现的两种编译错误
- 添加#include "windef.h"后出现编译错误的解决办法
- 数字家庭 (一) 开机
- 扩频通信的可行性
- json-lib 出现net.sf.json.JSONException: There is a cycle in the hierarchy异常的解决办法
- NHibernate.Burrow1.01GA 不能运行的解决办法
- Java 调用外部进程
- 关于comip.h(690)./comip.h(195) 编译错误的修改
- 一步一步创建一个Vista“忙”鼠标一样的Silverlight控件
- 本国货币贬值对经济的影响
- linux的网络安装和自动化安装
- JAVA将去向何方?
- Monospace/Fixed Width Programmer's Fonts
- 好书记载
- MS SQL SERVER海量数据库的查询优化及分页算法
- thickbox 的修改和添加的应用