Unable to start program ATL Project C++

别说谁变了你拦得住时间么 提交于 2019-12-11 07:44:40

问题


I am trying to create a BHO with the ATL Project in Visual Studio 2010. I have been following this article:

http://msdn.microsoft.com/en-us/library/bb250489(v=vs.85).aspx

The project builds successfully however I get an error popup with an ambiguous "Unable to start program 'C:\ .... MyProject.dll'"

My BHO just has the bare bones code, I've only added what was mentioned in the article until it says to build for the first time so most of it is auto generated. Anyone run into this? Thanks!


回答1:


You cannot run Dll directly. Set "Executable for Debug Session" as described in the article:

"Start the debugger by pressing F5. When the Executable for Debug Session dialog box appears, select the "Default Web Browser" and click OK. If Internet Explorer is not your default browser, you can browse for the executable. "

Edit: Project - Properties - Configuration Properties - Debugging - Command. Type here executable name which works with the library.



来源:https://stackoverflow.com/questions/7148259/unable-to-start-program-atl-project-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!