无法启动程序ATL Project C ++ [英] Unable to start program ATL Project C++

查看:129
本文介绍了无法启动程序ATL Project C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio 2010中使用ATL项目创建BHO.我一直在关注此文章:

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

项目成功构建,但是出现一个错误提示无法启动程序'C:\ .... MyProject.dll'"

我的BHO仅具有基本的代码,我只添加了文章中提到的内容,直到它第一次说要构建,因此大部分都是自动生成的.有人碰到这个吗?谢谢!

解决方案

您不能直接运行Dll.如文章中所述设置调试会话可执行文件":

通过按F5启动调试器.当调试会话的可执行文件"对话框出现时,选择默认Web浏览器",然后单击确定".如果Internet Explorer不是您的默认浏览器,则可以浏览该可执行文件./p>

项目-属性-配置属性-调试-命令.在此处输入与库一起使用的可执行文件名称.

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!

解决方案

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.

这篇关于无法启动程序ATL Project C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆