afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of '`global namespace''

Locked afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of '`global namespace''

  • Friday, March 09, 2012 9:30 AM
     
     

    When I'm trying to compile an existing C++ project that works in Visual Studio 2005 profesional in Visual Studio 11 Ultimate Beta:

    I'm getting this error in afximpl.h:

    afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of '`global namespace''

    I'm trying to build the project to run from winxp onwards, so I use

    #define _WIN32_WINNT 0x0501

    Did anyone have this problem?

All Replies

  • Sunday, March 11, 2012 1:54 AM
     
     Answered

    lcion wrote:

    When I'm trying to compile an existing C++ project that works in  Visual Studio 2005 profesional in Visual Studio 11 Ultimate Beta:

    I'm getting this error in afximpl.h:

    afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of  '`global namespace''

    I'm trying to build the project to run from winxp onwards, so I use

    #define _WIN32_WINNT 0x0501

    https://connect.microsoft.com/VisualStudio/feedback/details/690617

    It seems to be an official policy that applications developed with VC11  will require Vista or later, and will not run on WinXP.


    Igor Tandetnik