Basics help, getting back into the swing...

This is a discussion on Basics help, getting back into the swing... within the C++ Programming forums, part of the General Programming Boards category; So like a year ago I had 3d models up on a screen on top of a semi working object ...

  1. #1
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964

    Basics help, getting back into the swing...

    So like a year ago I had 3d models up on a screen on top of a semi working object oriented game engine...

    Now I can't figure out how to keep my console from closing automatically after it completes my code...

    Help?
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,588
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Thanks for the linkage
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  4. #4
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Actually this is weird because for some reason I recall my apps doing it by themselves, without any code..

    Is that an stdafx thing?
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,588
    What IDE are you using now? Some IDEs pause the program for you.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Visual studio 2005 express, exactly what I was using before, odd :\
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Are you using "Debug" now instead of "Run"?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    If your message loop is up and running then the only way to get out of it is by trapping for a certain keypress or the ALT F4 on the program in Windows.

    Sounds like you have a problem in the message loop of the main module or your app is exiting prematurely making it look as if it is closing. Check the exit code in the compiler. It should be 0 if everything went as planned.

  9. #9
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    It was running in debug, problem solved
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "if you love someone" :D
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-02-2003, 01:10 AM
  2. UInt to CString and back
    By xlnk in forum Windows Programming
    Replies: 6
    Last Post: 08-27-2003, 03:08 PM
  3. Some woman back ended my car today, and back hurts
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 08-20-2003, 12:42 AM
  4. Yey Im Back!
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 07-05-2003, 03:07 PM
  5. Aran strikes back
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 08-11-2002, 11:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21