Thread: Closing the application window

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Closing the application window

    Is there a line of coding that closes the window automatically. Like if I type exit and hit enter the window closes.

  2. #2
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    Doesnt abort() do that?
    Keyboard Not Found! Press any key to continue. . .

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Specifically what to type depends what windowing API you're using, but think about this: When they click the button that closes a window, wouldn't they have to have a line of code that tells the window to close? There's probably a member function. You could either look it up in the API docs or tells us what API you're using and see if one of us knows.

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    4
    the abort(); worked. Sorry for being vague I just learned C++ today.

  5. #5
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    Cool
    Keyboard Not Found! Press any key to continue. . .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Over Rideing close message when closing window
    By Rune Hunter in forum Windows Programming
    Replies: 8
    Last Post: 12-04-2005, 02:57 PM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM