我创建了ATL服务。当我正在构建时,它给出了在Windows 7 64位PC上Visual 2005上的消息
**1>Linking...
1>Embedding manifest...
1>Performing registration**一个神奇的窗口弹出对话“无法打开服务管理器”
当我试图运行我的项目时,它会产生这个错误。
**First-chance exception at 0x7709c41f in XYZ.exe: 0x00000005: Access is denied.
The thread 'Win32 Thread' (0x1844) has exited with code 1063 (0x427).
The program '[10592] XYZ.exe: Native' has exited with code 1063 (0x427).**我也检查了regedit,regedit/Appid中没有注册任何内容。
有人请帮助我理解这个问题。
提前谢谢。
发布于 2013-07-11 12:09:13
如果您需要,那么VS能够修改注册表,您必须启动VS“作为管理员.”。默认情况下,UAC阻止对注册表的访问。所以右击VS并选择“.”
发布于 2013-07-12 13:11:50
据我所知,Visual 2005的ATL版本并不是DEP安全的:它从不允许包含可执行代码的地址执行thunk代码。这会使应用程序崩溃,您需要修复ATL代码上的块,或者将应用程序放在DEP例外列表上。
https://stackoverflow.com/questions/17592878
复制相似问题