VC_VC2010打开调试单个CPP文件的COUT时候不会出现press any key to continue

VC2010打开调试单个CPP文件的COUT时候不会出现press any key to continue...或者闪下黑屏,所以微软如下BUG解决方案

The following bug, closed as fixed in Visual Studio 2010 RC, is still there:
https://connect.microsoft.com/VisualStudio/feedback/details/521838/vc-program-launch-with-option-start-without-debugging-would-not-pause-before-exit?wa=wsignin1.0#tabs

In my Makefile project, if I start the program without debugging (CTRL+F5), it always (per default) closed the opened console window. I compared my project file to a standard console application project file, and found the following:

<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>


Inserting this (using a text editor) under <Project> in my makefile project .vcxproj file solves the problem ... It would make sense that is the default behavior (as it is in my vs2005), or that this could be controlled from the standard project dialog.



这里用图片和中文文字解说一下吧 ,供大家参考也便于我以后的使用

1.找到你的工程目录找到.vcxproj文件,将它用记事本或其他的文本编辑打开,记住不用vs2010打开哦,那样只是打开工程。
2.找到如下的一行
</Project>

其实这个是在打开的文件的最后,ok了,记下来,你把上面的  蓝色的文字  copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。


其实这个是在打开的文件的最后,ok了,记下来,你把上面的  蓝色的文字  copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值