PDA

Click to See Complete Forum and Search --> : Checking for control of screen with DirectX


noone
Jun 1st, 2000, 08:52 AM
Hey,
My game runs full screen using Direct Draw. I'm running into the problem that if the user alt tabs out I'll get an automation error. I know this is because my program no longer has full access to the screen. Can someone point to an example of checking for this? I remember seeing it somewhere before but I dont remember where.
And Fox, before you say "go to my site" I've been there and downloaded the samples, didnt find it, so if it is there could you please be a bit more specific? thanks very much

Beta Version due tomorow :)

Jun 1st, 2000, 09:33 AM
if you have the SDK, goto the directdraw folder, and check out tut3, this is where you'll find it...

noone
Jun 1st, 2000, 10:03 AM
Thanks a lot Ghost. I really should have seen that. Sleep deprivation does wonderful things :)

Fox
Jun 1st, 2000, 10:03 AM
Dont go to my site!

*hehe*

Well, there isnt. I didnt care about error trapping on the examples. Like WhildGhost said, look at the SDK samples, the code there is a bit weird, but it works.

noone
Jun 1st, 2000, 10:32 AM
It is a little wierd but I was able to modify it so it works for me. Thanks again!!!