Original Post
Comments for the article Game Programming Genesis Part I : Beginning Windows Programming
while( bRunning )
{
if( PeekMessage( &msg, hwnd, 0, 0, PM_REMOVE ) )
{
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}
quote:
Original post by CaptainChainsaw
In reply to the anon poster:
OK I've got a 3 errors with my code, they are:
error C2664: 'RegisterClassA' : cannot convert parameter 1 from 'struct _WNDCLASSEX *' to 'const struct tagWNDCLASSA *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
error C2373: 'CreateWindowExA' : redefinition; different type modifiers: see declaration of 'CreateWindowExA'
error C2065: 'msg' : undeclared identifier
Error executing cl.exe.
Quote:
Original post by ZealousElixir
"A bit late"? He posted freaking a year and a half ago... Why on earth did you necro this (again) just to make that comment?
Quote:
UINT wMsgFilterMin, wMsgFilterMax: The indices of the first and last messages in the queue to check. Most of the time, you'll only be interested in the first message on the queue, so you would set both of these parameters to 0.
PeekMessage(&message, window, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE)
Quote:
Original post by Reggi
I started reading this article a few days ago and i realized it was from nearly a decade ago Dx. Is it still worth reading and learning from this article :o?
Quote:
And i was also wondering whether there are C++ windows programming tutorials similar to this one since this article was written about C. Or is it that C and C++ windows programming are similar enough that this article is still good if i want to write in C++?
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more