Thread: SDL Window Closes...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    118
    Quote Originally Posted by beene View Post
    Just comment out engineInstance.stopWindow() in main.cpp and then run it.
    Yep, still closes the window almost instantly... :/

    FlyingIsFun1217

    ----------EDIT----------

    After putting in a simple

    Code:
    int number = 0;
        
        while(number == 0)
        {
                     
        }
    It pauses the window as it is. Of course, the program also rightly freezes.

    I can now say I know what I need to do with the code to keep the window open. I really just need to implement an action catch and see if the user closed the window.

    Thanks!
    FlyingIsFun1217
    Last edited by FlyingIsFun1217; 11-20-2007 at 04:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM