|
-
Help with Microsoft Visual Studio .NET 2003
When I typed a basic code in the editor using a blank solution project selecting a win32 program console, and when I comple it and run it the console flashes on then it would quickly flash off. Why does this happen, and should I selected a different option.
eg of code:#include <iostream>
int main()
{
std::cout << "Trying it out\n";
return 0;
}
very basic, and in the Debug output it has:
'testing.exe': Loaded 'C:\Documents and Settings\Pablo\Desktop\TEST\testing\Debug\testing.exe', Symbols loaded.
'testing.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'testing.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
The program '[2492] testing.exe: Native' has exited with code 0 (0x0).
Last edited by realazz; 09-13-2005 at 02:55 AM.
-
NullPointerException
The program is running and then ending, and then the console closes. This is normal.
To keep it open, either add a breakpoint to the last line of the program or choose "Start Without Debugging" instead. This will give you a "Press any key to continue" prompt and keep the console window open.
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
-
Another option you can try is to go to your solution properties menu
and set your solution to WIN32 application instead of console.
That will true of the black screen flashing thing.
______________
"You can never solve a problem on the level on which it was created"
The solution to your problems is one level ahead - in casino on net...
-
does anyone know how to fix this same issue in Bloodshed DevC++?
-
.
 Originally Posted by CPUmelter
does anyone know how to fix this same issue in Bloodshed DevC++?
This not an issue as explained above and the same fix works. Bascially, you are executing a console application and you have to tell it to pause afte the code executes.
---------------------------------------------------------------
- Asus M50 Laptop - C2D T9300 - 4 gig RAM - Radeon HD 3650 - Vista x64 Ultimate
- Intel i7-3770K - Asus P8Z77-V DELUXE - 32gig RAM - Radeon HD7970 Ghz - Plextor M3 256GB/120GB OCZ Vertex3
- LG BluRay - Razor Blackwidow Ultimate Keyboard - Logitech G9x
- HP ZR2740w/Asus LCD - W7 Ultimate
---------------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|