• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

GetMessage

Started by James C. Fuller, October 29, 2009, 01:38:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

James C. Fuller

I did a quick search here and on the PowerBASIC board and found most source code does not check for an error condition when calling GetMessage.

http://msdn.microsoft.com/en-us/library/ms644936%28VS.85%29.aspx

Any particular reason for the omission?

James

José Roca

 
Nothing, excepting that it is seldom needed. With PB, returning -1 should only happen if the hWnd parameter is invalid, but you should have stopped the program before if you check the result of CreateWindowEx.