Click to See Complete Forum and Search --> : Program exits when loses focus
mitgiraffe
Aug 24th, 2005, 01:06 PM
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!
capsulecorpjx
Aug 24th, 2005, 03:32 PM
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.
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!
dglienna
Aug 24th, 2005, 08:27 PM
Some of them drew directly to the screen, which isn't allowed in Windows, as that code is run in a protected class.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.