Click here to Skip to main content
14,826,447 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Updated 25-Mar-21 14:10pm
Comments
ZurdoDev 22-Aug-17 9:57am
   
Exited with code 0 means there was no error. What is your question?
Richard MacCutchan 22-Aug-17 10:45am
   
Please show the code of your program so we can see what it is doing.
hengryjack 23-Aug-17 20:52pm
   
This is my code
#include <iostream>
using namespace std;


int main()
{
cout << "Hello World";
return 0;
}

That's perfectly normal. your program is executing as expected.
See here to find out how to pause it How to stop C++ console application from exiting immediately? - Stack Overflow[^].
   
Comments
Nelek 3-Apr-20 14:09pm
   
A bit late, need more coffee?
CPallini 3-Apr-20 17:32pm
   
Not this time. I spent almost three years thinking about the problem. Eventually I found a brilliant solution. :-D
Nelek 4-Apr-20 8:55am
   
:laugh:
I upvoted the solution because I could not upvote your comment.
CPallini 4-Apr-20 9:00am
   
Man, you are too good!
:-)
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!
   
Comments
hengryjack 23-Aug-17 20:52pm
   
This is my code
#include <iostream>
using namespace std;


int main()
{
cout << "Hello World";
return 0;
}
OriginalGriff 24-Aug-17 2:15am
   
Well.
What can I say? It's doing exactly what you have told it to do...print a message -
- "hello world" - rand return 0 to the operating system as a "it worked" code value.

That's not a bug. That's not a problem. That doesn't need a solution - that is exactly what you asked for. If you can't see "Hello world" on the screen, that's probably because the application closes immediately after you print it, so there is no time for you to read it...

Run the app from the command line: WINKEY+R, "cmd" then ENTER. Change directory to the folder holding the executable file, and type the executable name, followed by ENTER - you will see "Hello world" then.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900