Results 1 to 3 of 3

Thread: Program exits when loses focus

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    34

    Program exits when loses focus

    I am working with an interface, built on top of Windows XP Professional, that provides links to start a variety of educational games, several of which are old DOS apps. One of these games, Toony the Loons Lagoon, starts and runs fine until it loses focus. If it loses focus (such as by pressing ALT-TAB), and some type of animation is running within Toony The Loons Lagoon, it flat out closes the entire application. If there is not an animation running, the application still loses it's state, so you basically have to start your game over from the beginning (but the program itself is still running).

    Is there any way to start this program differently, or to create something that will prevent the program from closing simply because it lost focus?

    Thanks in advance for any help!

  2. #2
    Hyperactive Member capsulecorpjx's Avatar
    Join Date
    May 2005
    Location
    Renton, WA
    Posts
    288

    Re: Program exits when loses focus

    Not really.

    I don't think old DOS applications thought about multittasking. That might be the problem, just the fact that the program was designed for DOS.

    Quote Originally Posted by mitgiraffe
    I am working with an interface, built on top of Windows XP Professional, that provides links to start a variety of educational games, several of which are old DOS apps. One of these games, Toony the Loons Lagoon, starts and runs fine until it loses focus. If it loses focus (such as by pressing ALT-TAB), and some type of animation is running within Toony The Loons Lagoon, it flat out closes the entire application. If there is not an animation running, the application still loses it's state, so you basically have to start your game over from the beginning (but the program itself is still running).

    Is there any way to start this program differently, or to create something that will prevent the program from closing simply because it lost focus?

    Thanks in advance for any help!
    "I like to run on treadmills, because at least I know I'm getting nowhere."
    - Me

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Program exits when loses focus

    Some of them drew directly to the screen, which isn't allowed in Windows, as that code is run in a protected class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width