Help with Microsoft Visual Studio .NET 2003

Sharky Forums


Results 1 to 5 of 5

Thread: Help with Microsoft Visual Studio .NET 2003

  1. #1
    Goldfish
    Join Date
    Aug 2001
    Location
    Nassau Bahamas
    Posts
    88

    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.

  2. #2
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    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

  3. #3
    Expensive Sushi
    Join Date
    Aug 2005
    Posts
    11

    Arrow

    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...

  4. #4
    Reef Shark
    Join Date
    Nov 2004
    Posts
    352
    does anyone know how to fix this same issue in Bloodshed DevC++?

  5. #5
    . ksuohio's Avatar
    Join Date
    Oct 2001
    Location
    Atlanta, GA
    Posts
    2,721
    Quote 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
  •