Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Screen Invalid Nightmare()

Author
Message
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 3rd Jan 2003 19:22
Hi!
I got a big problem ,when the screen saver starts
it kills my dbp app. Now I've tryed to find some way
around this using dll calls, but with no success.

Any win api experts know how to accomplish this:
1.) Restoring the dbp screen surface after a switch in/out
2.) Temporary disabling the screen saver.

And last, does any know were I can download a copy
of the WinApiReference? MSDN does not seen to have any download, just online references.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 19:35
I'm not sure whether the command to detect this in DBPro works (never tried it myself). You shouldn't try to temporarily disable the screensaver as if your program crashes, you wont have restored it.

As for MSDN you could always download the Windows SDK etc etc, which has got almost all the API commands. You had better have broadband though...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Jan 2003 21:14
Try the following code:



Don't forget to switch the screen saver back on when you exit your app.
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 3rd Jan 2003 23:10
Thanks IanM!

Just what I needed. Those are the same dll calls I used,
but I got the parameters wrong.
However I hope DBS are going to fix this switch in/out thing
properly.
Dbp app doesn't survive a screensaver??? what is that crap
all about?
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Jan 2003 00:48
Its a known problem. Should be fixed with the new 3D engine.
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 4th Jan 2003 02:17
Thanks Ian M thats useful! Hope its fixed in Patch 4 tho, seems a bit sloppy

* If the apocalypse comes, email me *

Login to post a reply

Server time is: 2024-05-18 05:38:04
Your offset time is: 2024-05-18 05:38:04