vs2010运行没有“press any key to continue...”
2014-03-23 18:35
399 查看
在程序后面加一句 system("pause"); 暂时是这样么解决的。
下面这段来自http://linuxmanong.diandian.com/post/2010-06-05/6474282 但是试了没起作用。。
这个是来自微软官方的高手提供的解决方案,本人已经测试成功,和大家分享,下面的是原文:
Missing "press any key to continue..." when lauching with CTRL+F5
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一样了。
下面这段来自http://linuxmanong.diandian.com/post/2010-06-05/6474282 但是试了没起作用。。
这个是来自微软官方的高手提供的解决方案,本人已经测试成功,和大家分享,下面的是原文:
Missing "press any key to continue..." when lauching with CTRL+F5
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一样了。
相关文章推荐
- 如何让VS.net中的控制台程序出现Press any key to continue字样?
- vs下c++中main _tmain以及控制台程序结束后不出现press any key to continue问题
- VC_VC2010打开调试单个CPP文件的COUT时候不会出现press any key to continue
- 虚拟机开机时出现Press ESC in 5 seconds to skip startup.nsh, any other key to continue问题的解决办法
- 三星笔记本安装系统时报错:image failed to verify with * access denied* press any key to continue.
- 在Java中如何实现“Pless presss any key to continue.”
- 在Java中如何实现“Pless presss any key to continue.”
- 使用Homebrew管理你的mac开发包( Press RETURN to continue or any other key to abort)
- line 1 of the inf file winnt.xpe is invalid setup cannot continue. press any key to exit
- Subject :I need to "press any key to continue"
- Press any key to continue 原来是 这么写出来的
- press any key to out demo
- C语言——实例032 Press any key to change color, do you want to try it. Please hurry up!
- cout<<"Press any key to exit!\n"<<endl;
- NTLDR is missing Press any key to restart
- NTDLR is missing Press anykey to restart
- Press any key to change color, do you want to try it. Please hurry up!
- Rufus安装Win7操作系统出现“press any key to boot from usb”解决方案
- NTLDR is missing press any key to restart 的解决方法
- Load Error!Press any key to reboot