UpdateRegistry编译错误
当我使用客户提供的 WInCE 设备 SDK 构建 ATL com 时,出现以下错误。我该如何解决这个问题?我使用 VS-2005 创建了工作区。
1>f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(73) : error C2039: 'UpdateRegistry' : is not a member of 'CCmdParser'
1> f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(29) : see declaration of 'CCmdParser'
1>f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(73) : error C2065: 'UpdateRegistry' : undeclared identifier
I am getting the following errors when I build an ATL com with the WInCE device SDK provided by the customer. How can I resolve this issue? I created the workspace with the VS-2005.
1>f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(73) : error C2039: 'UpdateRegistry' : is not a member of 'CCmdParser'
1> f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(29) : see declaration of 'CCmdParser'
1>f:\polycold\testapps\polycoldsmartdevice\polycoldsmartdevice\CmdParser.h(73) : error C2065: 'UpdateRegistry' : undeclared identifier
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过对我的水晶球进行大量猜测,我将假设 CmdParser 是您尝试创建的新 ATL COM 类。如果是这种情况,我相信 VS ATL 向导中存在一个错误,导致 WINCE ATL 项目无效。我为此使用的一个简单解决方法是注释掉以下内容:
您的 ATL 类的头文件中应该有类似的代码。
这篇文章。
By doing a lot of guessing with my crystal ball I will asume that CmdParser is a new ATL COM class you are trying to create. If this is the case, I believe there is a bug in VS ATL wizard that makes WINCE ATL projects not valid. An easy workaround I use for this is to comment out the following:
You should have a similar code on the header file of your ATL class.
There are some comments on this issue in this post.