|
-
August 6th, 2010, 02:42 AM
#1
Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Some years back I wrote a C++ dll in Visual Studio 6.0
It contains mouse hook, keyboard hook and also winevent
I tried converting it into Visual Studio 2008. When I opened the project in VS 2008, as usual, I got the message that the .dsp file needs to be converted. I selected "yes to all". But the code does not compile. I got the error that "winable.h" is not found. I changed it to "winuser.h". But now lots of contants related to MSAA are not recognized and I still get compiler error.
How to fix this problem?
Thanks.
-
August 6th, 2010, 03:13 AM
#2
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Which "constants" are not recognized?
Victor Nijegorodov
-
August 6th, 2010, 03:24 AM
#3
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
It does not recognise the function SetWinEventHook and the constants EVENT_MIN, EVENT_MAX, CHILDID_SELF and some others.
I mean it does not recognise any constant related to MSAA.
-
August 6th, 2010, 03:41 AM
#4
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Note that
Code:
#include <winuser.h>
is already in windows.h file.
So, it would be better to #include windows.h only (and do it in stdafx.h) and remove all winuser.h includes.
Victor Nijegorodov
-
August 6th, 2010, 03:47 AM
#5
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
I did it but still the same error.
-
August 6th, 2010, 03:57 AM
#6
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Create and test a small project where you only call SetWinEventHook .
If the problem will be the same - post this project to the Forum (in zip archive not including Debug/Release folders nor .ncb, .opt, .aps files)
Victor Nijegorodov
-
August 6th, 2010, 03:04 PM
#7
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
 Originally Posted by visharad
It does not recognise the function SetWinEventHook and the constants EVENT_MIN, EVENT_MAX, CHILDID_SELF and some others. I mean it does not recognise any constant related to MSAA.
You need to install the platform sdk (or at least the MSAA sdk) to get the MSAA related headers. These don't come with Visual Studio by default.
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
|