问题
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