Hello, I am trying to get the coordinates of the cursor when the user left clicks the mouse. I read that you can use this:
if (WM_LBUTTONDOWN)
{
int x = LOWORD( LPARAM );
int y = HIWORD( LPARAM );
}
However, when i compile, it gives me this error:
expected primary-expression before ')' token
I have included <windows.h> (don't really know if i need to), and it still doesn't work. I am using Code::Blocks and MinGW. Any ideas?:?: