This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How to create a WaitForKeyPressed function


How to create a WaitForKeyPressed function

Postby Staryon » May 23, 2007 @ 12:02am

Staryon
pm Member
 
Posts: 33
Joined: Nov 4, 2006 @ 12:05am


Postby Dan East » May 23, 2007 @ 2:32am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Staryon » May 23, 2007 @ 3:39pm

Thanks a lot, Dan.
Staryon
pm Member
 
Posts: 33
Joined: Nov 4, 2006 @ 12:05am


Postby Dan East » May 23, 2007 @ 5:00pm

Oh, one side note. You'll see GetMessage's BOOL return value is not actually treated as boolean. That's Microsoft's strangeness there. It's -1 if an error occurred, 0 if WM_QUIT was received, and 1 if success.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Antony » May 31, 2007 @ 1:22am

You can get the error returned using the GetLastError function.

And just to be correct (you might say pedantic) the return is non-zero for success.
Ant.
User avatar
Antony
pm Member
 
Posts: 39
Joined: Jun 8, 2004 @ 10:43pm
Location: Hitchin, UK


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron