mmozeiko
Oh, right Windows 7 SDK also includes older headers.
To use DirectX SDK headers you need to add include path to it for compiler. If you use IDE, then open project properties, go to C/C++ -> General. And add "$(DXSDK_DIR)Include" to "Additional Include Directories".
If you use build.bat or similar commandline build system, add "/I$(DXSDK_DIR)Include" to cl.exe arguments.
I'm using the batch file. I'm not sure what's going wrong.
Here's what my build.bat looks like:
| @echo off
mkdir ..\..\build
pushd ..\..\build
cl -FC -Zi /I"$(DXSDK_DIR)Include" ..\Handmade_Hero\Code\win32_handmade.cpp User32.lib Gdi32.lib
popd
|
Added in the check for XUSER_MAX_COUNT and the compiler is still complaining that it's undefined.
I checked the environment variable DXSDK_DIR, and it looks like it points to the correct place. I put the "" around the path since there will be spaces. I Don't know if that's really required. I tried with and without with the same result.