Keyboard & mouse hook example program (for VS Express 2012)?
I was using an old example system wide keyboard and mouse hook written by Paul DiLascia. It works in Windows XP in Visual Studio NET 2003. But now I need an example system wide keyboard and mouse hook for Visual Studio Express 2012 in Windows 8. I'm familiar with C++, but I could learn C# or Visual Basic. I can do the programming syntax and logic, but I have trouble with the Windows interface code. I would like to again use an example hook and replace the guts with my own code.
Thanks.
Re: Keyboard & mouse hook example program (for VS Express 2012)?
So doesn't the code of Paul DiLascia work in Visual Studio Express 2012 in Windows 8?
Re: Keyboard & mouse hook example program (for VS Express 2012)?
If the example doesn't compile for Visual Studio Express 2012, what compile errors are you getting?
Re: Keyboard & mouse hook example program (for VS Express 2012)?
I made some progress and then ran into this
error C1083: Cannot open include file: 'afxwin.h'
Apparently Visual Studio Express does not include MFC.
I might try using "virtual box" or whatever it's called to run Windows XP and my Visual Studio NET 2003. That will probably be quicker than restoring Windows XP when I need to adjust my macro recorder code. I do almost no programming. Once in a great while, I use the same macro recorder, changing the recorder output text to whatever scripting language I'm using at the time. Few and far between programming tasks. Buying a professional version of C++ in order to get MFC working in Windows 8 isn't going to happen here.
Thanks to the replies.
Re: Keyboard & mouse hook example program (for VS Express 2012)?
Quote:
Originally Posted by
zolds
I made some progress and then ran into this
error C1083: Cannot open include file: 'afxwin.h'
Apparently Visual Studio Express does not include MFC.
Which MFC classes do you use?
What happens if you comment out this #include?
1 Attachment(s)
Re: Keyboard & mouse hook example program (for VS Express 2012)?
Quote:
Originally Posted by
zolds
I was using an old example system wide keyboard and mouse hook written by Paul DiLascia. It works in Windows XP in Visual Studio NET 2003. But now I need an example system wide keyboard and mouse hook for Visual Studio Express 2012 in Windows 8.
I don't see why you cannot use VS NET 2003 in Win8.
Quote:
Originally Posted by
zolds
Buying a professional version of C++ in order to get MFC working in Windows 8 isn't going to happen here.
Pure Win32 API mouse hook sample: Attachment 31779 (proved to work in Win 7)