程序已退出,代码为0(0x0)。

编程入门 行业动态 更新时间:2024-10-28 12:17:46
本文介绍了程序已退出,代码为0(0x0)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Can i have a solution for this Anytime i work and this is happening I hav read anything and they aren't work Pls help MEEEEE Thank you very much -------------------------------------------------------------------------------------- 'Project4.exe' (Win32): Loaded 'C:\Users\Administrator\source\repos\Project4\Debug\Project4.exe'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-timezone-l1-1-0.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l2-1-0.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-localization-l1-2-0.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-synch-l1-2-0.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-processthreads-l1-1-1.dll'. Symbols loaded. 'Project4.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l1-2-0.dll'. Symbols loaded. The program '[4268] Project4.exe' has exited with code 0 (0x0).

什么我试过了: 我尝试了很多解决方案但是......它不起作用

What I have tried: I have try many solution but... it's doesn't work

推荐答案

我们无法为您做任何事情 - 您的应用程序一开始就退出,我们根本看不到您的代码 - 并且在此处发布代码片段无济于事,因为我们可以; t没有完整的代码完全复制你的项目 - 我不会让它在我的电脑附近! :笑: 所以从小开始。重新启动计算机(以确保它全部干净),打开VS并创建一个与旧计算机类型相同的新项目。构建它,并尝试在调试器中运行它。它有用吗? 如果确实如此,那么复制一下旧项目并再试一次。继续这样做直到它失败(或者你最终完成一个完整的项目)。当它失败时,你至少知道哪个位导致了问题并且可以专注于那个。再把它取出来,检查它是否正常工作,稍微放回一点并继续使用较小的位直到它显而易见。 如果没有...尝试重新安装VS ? 对不起,但是从这个距离我们无法为您做任何事情! We can't do anything about that for you - your application is exiting as soon as it starts, and we can't see your code at all - and posting code fragments here won't help, because we can;t duplicate your project exactly without the whole code - and I'm not letting that anywhere near my computer! :laugh: So start smaller. Restart your computer (to make sure it's all "clean"), open VS and create a new project that is the same type as your old one. Build that, and try to run it in the debugger. Does it work? If it does, then copy a bit of your old project in and try it again. Keep doing that until it fails (or you end up with a working complete project). When it fails, you at least know which bit is causing the problem and can concentrate on that. Take it out again, check it works, put a small bit back and continue with smaller bits until it's obvious. If it doesn't ... try reinstalling VS? Sorry, but there isn't anything we can do for you from this distance!

试试! 主要方法中的系统(暂停)选项。 int main() { cout<<Hello World; 系统(暂停); 返回0; } Try ! "System("pause") option in main method". int main() { cout<<"Hello World"; System("pause"); return 0; }

我发现你认为你的解决方案....我在视觉工作室转到项目>属性>链接器>系统寻找子系统单击向下箭头并切换到控制台(....单词....)。注意下拉框不会立即显示,您必须单击框。 i found your solution i think....i the visual studio go to project >properties >linker >system look for the Subsystem line and click the down arrow and change to Console(....words....). NOTE the drop down box is not visible immediately, you must click into the boxes.

更多推荐

程序已退出,代码为0(0x0)。

本文发布于:2023-07-27 16:00:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1223278.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!