|
-
July 3rd, 2011, 08:29 PM
#1
Programming Windows API in Mac OS Bootcamp
Hello,
I am running Windows 7 on a Mac, using Apple's Bootcamp utility, such that the Windows installation is native. However, I am finding some issues when programming the Windows API using Visual Studio, specifically related to user inputs from the keyboard and mouse.
Suppose in a Windows program, the user presses a keyboard key. With a normal PC running Windows, in the WndProc() function, the message argument is WM_KEYDOWN and lParam is typically a number between 0 and 255, representing the key being pressed ("a", "s", "/" etc.). However, when debugging my program, I am finding that lParam is a very large number, eg. 847924401. I cannot find any obvious pattern in these numbers to map them over to the "standard" numbers expected in Windows. Similarly, when a mouse is clicked on the screen, the message is WM_LBUTTONDOWN and lParam indicates the cursor location, but this number is also a very large number, and not what is normally expected under Windows.
Has anybody come across this issue before, and are there any solutions out there?
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|