PDA

View Full Version : Can't deal with systems DLL's



Bruno
05-03-2000, 11:43 PM
Hi
I'm tryng to catch the windows messages, to make a user interface mouse in opengl, but i keep having this error message in the debugger.. Anyone knows what this is?
Thanks
Bruno

dmy
05-04-2000, 12:13 AM
what error?

i capture windows mouse data by catching these messages into the window procedure:

WM_MOUSEMOVE
WM_LBUTTONDOWN
WM_RBUTTONDOWN
WM_MBUTTONDOWN
WM_LBUTTONUP
WM_RBUTTONUP
WM_MBUTTONUP

mouse position and buttons are returned into:

x==LOWORD(lParam)
y==HIWORD(lParam)
buttons/modifiers==wParam

Dolo/\/\ightY

Bruno
05-04-2000, 02:58 AM
I know those messages, and that is exactly the ones that i'm tryng to use, but the windows just ignore them, and when i debug, i also have that error, when i reach this piece of code:

return DefWindowProc(hWnd, uMsg, wParam, lParam);

Do i have to initialize the mouse or something?

thanks
Bruno

artur
05-04-2000, 04:59 AM
What compiler you are using ?

Bruno
05-04-2000, 09:32 AM
I'm using VC 6++..
I have fixed the problem.., i really don't know whats wrong, i just started everything from the beginng..
thanks anwyay
Bruno