Closing the application window

This is a discussion on Closing the application window within the C++ Programming forums, part of the General Programming Boards category; Is there a line of coding that closes the window automatically. Like if I type exit and hit enter the ...

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 11:17 AM
  3. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 03:33 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM

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