Creating Errors for Windows XP Using Visual Studio 2013 Express

EDIT: Solved! See below.

I am trying to make my C ++ / OpenGL game compatible with Windows XP.

I am currently using Visual Studio 2013 Express. I followed the instructions here and changed Platform Toolset to v120_xp, but now I get errors in winbase.h and some other files.

My specific windows include the following:

#include <Windows.h>
#include <tchar.h> 
#include <strsafe.h>
#include <direct.h> 
#include <sys/types.h>
#include <dirent.h>

Here are some of the errors I get:

1> C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.1A \ include \ winbase.h (6133): error C2226: syntax error: unexpected type 'LPSTR'

1> C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.1A \ include \ winbase.h (6141): error C2226: syntax error: unexpected type 'LPWSTR'

1 > C:\Program Files (x86)\Microsoft SDK\Windows\v7.1A\include\stralign.h(113): C2065: 'wcscpy_instead_use_StringCchCopyW_or_StringCbCopyW':

1 > C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\cstdio (46): C2039: '_gets_instead_use_StringCchGetsA_or_StringCbGetsA': `` ''

1 > C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\cstring (20): C2039: 'strcat_instead_use_StringCchCatA_or_StringCbCatA': `` global namespace ''

.

, . - , . !


:

, .

tchar.h strsafe.h Windows.h

Windows.h .

+3

All Articles