none
Migration from VS2003 to VS2013

    Question

  • Hi,

    I am frequently getting some compilation errors when migrated from VS2003 to VS2013. I have a sample source code and when i compile i get the below errors:

    error C2059: syntax error : 'constant'    C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h

    error C2334: unexpected token(s) preceding ':'; skipping apparent function body    C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h  

    error C2059: syntax error : 'string'    C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h  

    error C2334: unexpected token(s) preceding '{'; skipping apparent function body    C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h   

    error C2159: more than one storage class specified    C:\Program Files (x86)\Windows Kits\8.1\Include\shared\minwindef.h   

    error C2146: syntax error : missing ';' before identifier 'WPARAM'    C:\Program Files (x86)\Windows Kits\8.1\Include\shared\minwindef.h  

    error C2371: 'UINT_PTR' : redefinition; different basic types    C:\Program Files (x86)\Windows Kits\8.1\Include\shared\minwindef.h   

    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    C:\Program Files (x86)\Windows Kits\8.1\Include\shared\minwindef.h   

    error C2146: syntax error : missing ';' before identifier 'CRITICAL_SECTION'    C:\Program Files (x86)\Windows Kits\8.1\Include\um\minwinbase.h   

    I request someone to reply how to resolve these compilation errors.

    Regards,

    Kumar

    Wednesday, December 30, 2015 6:10 AM

Answers