救命阿,搞不懂的编译错误,请各位大侠帮忙!

hellonew 2004-03-27 11:27:33
AddDlg.cpp
d:\vc\hrman\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\vc98\include\comip.h(732) : error C2227: left of '->QueryInterface' must point to class/struct/union
c:\program files\microsoft visual studio\vc98\include\comip.h(364) : see reference to function template instantiation 'int __thiscall _com_ptr_t<class _com_IIID<struct _Recordset,&struct __s_GUID _GUID_00000556_0000_0010_8000_00aa006d2ea4>
>::_CompareUnknown(long)' being compiled
...全文
30 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hellonew 2004-03-27
  • 打赏
  • 举报
回复
问题找到了,谢谢大家,是我的连接数据库的.h文件中的方法定义错误。
DebugXP 2004-03-27
  • 打赏
  • 举报
回复
顺便加入
#pragma warning(disable: 4146)
DebugXP 2004-03-27
  • 打赏
  • 举报
回复
在编译的时候肯能会出现如下警告,对此微软在MSDN中作了说明,并建议我们不要理会这个警告。
msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
hellonew 2004-03-27
  • 打赏
  • 举报
回复
没人帮我啊,等了这么久!
同时总是有警告信息:
d:\vc\hrman\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
HrManDlg.cpp

我要发疯了

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧