Visual Studio 2010的程序结束后退出 [英] Visual studio 2010 exiting after program ends

查看:517
本文介绍了Visual Studio 2010的程序结束后退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过编译C程序尝试的Visual Studio 2010。它显示在DOS命令窗口中的溶液后,窗口被立即关闭。在Visual Studio 2008,一个得到消息preSS任意键继续和pressing一键关闭命令提示符窗口。我如何在2010年的这种行为?

I'm trying out Visual studio 2010 by compiling a C program. After it displays the solution in the "DOS" command window, the window is immediately closed. In Visual studio 2008, one gets the message press any key to continue and pressing a key closes the command prompt window. How do I set this behavior in 2010?

推荐答案

有点谷歌搜索后,我发现<一个href=\"https://connect.microsoft.com/VisualStudio/feedback/details/540969/missing-$p$pss-any-key-to-continue-when-lauching-with-ctrl-f5?wa=wsignin1.0\">this解决方案,不涉及修改您的code。它包含涉及到修改您的.vcxproj文件中的解决方法。

After a bit of googling, I found this solution that does not involve modifying your code. It contains a workaround that involves modifying your .vcxproj file.

要从微软的Visual C内做到这一点++ 2010防爆preSS(我假设它是Visual Studio 2010的相似),打开您的项目并导航到以下菜单:

To do this from within Microsoft Visual C++ 2010 Express (I'm assuming it is similar for Visual Studio 2010), open your project and navigate to the following menu:

Project->$YOURPROJECTNAME Properties...
    ->Configuration Properties
        ->Linker
            ->System->SubSystem

然后使用下拉菜单选择控制台(/子系统:CONSOLE)。并应用更改

不开始调试应该做的正确的事情了。

"Start without debugging" should do the right thing now.

这篇关于Visual Studio 2010的程序结束后退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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