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

  • Question

  • 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?

    Friday, March 9, 2012 9:30 AM

Answers

  • 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

    • Marked as answer by Rob Pan Monday, March 19, 2012 8:51 AM
    Sunday, March 11, 2012 1:54 AM