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一样了。



你可能感兴趣的:(application,makefile,文本编辑,2010,behavior,debugging)