atlconv.h的错误

奇零草 2006-04-03 06:05:20
我在VC6.0中编译如下文件:
#include<windows.h>
#include<atlconv.h>
int main()
{
return 0;
}
出现错误:
error C2065: '_ASSERTE' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(237) : error C2065: 'offsetof' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(237) : error C2275: 'DEVMODEW' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1870) : see declaration of 'DEVMODEW'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(237) : error C2065: 'dmFormName' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(237) : error C2275: 'DEVMODEW' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1870) : see declaration of 'DEVMODEW'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(237) : error C2065: 'dmSpecVersion' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(240) : error C2275: 'DEVMODEW' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1870) : see declaration of 'DEVMODEW'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(240) : error C2065: 'dmLogPixels' : undeclared identifier
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(350) : error C2275: 'DEVMODEA' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1825) : see declaration of 'DEVMODEA'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(350) : error C2275: 'DEVMODEA' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1825) : see declaration of 'DEVMODEA'
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(353) : error C2275: 'DEVMODEA' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\wingdi.h(1825) : see declaration of 'DEVMODE"
哪位高手知道是为什么吗?谢谢!
...全文
959 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
奇零草 2006-04-04
  • 打赏
  • 举报
回复
谢谢!
masterz 2006-04-03
  • 打赏
  • 举报
回复
#include<windows.h>
#include <atlbase.h>

#include<atlconv.h>
int main()
{
return 0;
}

7,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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