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
    
已邀请:
通过对我的水晶球进行大量猜测,我将假定CmdParser是您要创建的新ATL COM类。如果真是这样,我相信VS ATL向导中存在一个错误,该错误使WINCE ATL项目无效。我为此使用的一种简单的解决方法是注释掉以下内容:
//#ifndef _CE_DCOM
DECLARE_REGISTRY_RESOURCEID(IDR_TESTATLOBJ)
//#endif
您的ATL类的头文件上应该有类似的代码。 这篇文章对此有一些评论。     

要回复问题请先登录注册