Thread: Basics help, getting back into the swing...

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

    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
    28,413
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    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
    968
    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
    28,413
    What IDE are you using now? Some IDEs pause the program for you.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    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,895
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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
    968
    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