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.
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Which "constants" are not recognized?
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.
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.
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
I did it but still the same error.
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)
Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)
Quote:
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.