CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2006
    Posts
    216

    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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)

    Which "constants" are not recognized?
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2006
    Posts
    216

    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.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    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

  5. #5
    Join Date
    Oct 2006
    Posts
    216

    Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)

    I did it but still the same error.

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    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

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Converting from Visual Studio 6.0 to Visual Studio 2008 (code is using MSAA)

    Quote Originally Posted by visharad View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured