error C2061: syntax error : identifier 'CComVariant'

冰点青蛙 2015-06-12 11:11:21
项目是VC6转成VC2010的ATL com工程,出现了未定义错误,可以右键定位到定义文件,但是就是一直提示error 未定义那个数据类型错误,谁知道会是什么错误?请大侠不惜赐教!






1>------ Build started: Project: VideoControl, Configuration: Debug Win32 ------
1> stdafx.cpp
2>------ Build started: Project: Render, Configuration: Debug Win32 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\proj\OCX-src2010\Render\RenderD3D9\.\..\lib\Render.dll) does not match the Linker's OutputFile property value (E:\proj\OCX-src2010\Bin\Debug\TTRender2.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(Render) does not match the Linker's OutputFile property value (TTRender2). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2> Render.vcxproj -> E:\proj\OCX-src2010\Render\RenderD3D9\.\..\lib\Render.dll
1> VideoControl.cpp
1> EventsManager.cpp
1>e:\proj\ocx-src2010\videocontrol\eventsmanager.h(40): error C2061: syntax error : identifier 'CComVariant'
1>e:\proj\ocx-src2010\videocontrol\eventsmanager.h(61): error C2146: syntax error : missing ';' before identifier 'm_Variant'
1>e:\proj\ocx-src2010\videocontrol\eventsmanager.h(71): error C2146: syntax error : missing ';' before identifier 'm_Variant'
1>e:\proj\ocx-src2010\videocontrol\eventsmanager.h(81): error C2146: syntax error : missing ';' before identifier 'm_Variant'
1>e:\proj\ocx-src2010\videocontrol\eventsmanager.h(91): error C2146: syntax error : missing ';' before identifier 'm_Variant'
...全文
299 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,540

社区成员

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

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