Referring to zordon's code, this seems to fix it:
LRESULT WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
change to
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM...
Type: Posts; User: megafiddle
Referring to zordon's code, this seems to fix it:
LRESULT WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
change to
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM...
My suggestions above aren't all of the problem. Still doesn't work after those corrections.
Isn't that C++ syntax, for passing by reference (as opposed to passing by value or pointer)?
It's...
LRESULT WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
should be
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Also, the function
int...