So after looking more in depth I found a clear explanation what's happening here:
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
According to this Microsoft document things like:
do while GetMessage (&wm, 0, 0, 0)
....
should be avoided because the return value can be nonzero, zero, or -1.
So I changed the loop to:
;
; bRet needs to be defined before use...
;
;MESSAGE LOOP
;
do while (bRet = GetMessage (&wm, 0, 0, 0) != 0)
if bRet == -1 then
'do something after the error occurred and show an error message
else
TranslateMessage (&wm)
DispatchMessage (&wm)
end if
wend
;
and this works perfectly.
Maybe the examples that incorporate a gui should get the message loop changed accordingly.
Thanks
efgee
BTW I like the fact that oxygen understands C to some a degree; this way I can use stuff like "==" and "!=" and it works!
Bookmarks