warning C4003: not enough actual parameters for macro 'max' - Visual Studio 2010 C++
You are not the first to be bitten by these ancient macros. They can't remove them, that would break old code. So they came up with another macro to remove the sting. Make it look like this:
#ifndef NOMINMAX
# define NOMINMAX
#endif
#include <windows.h>
// Rest of your #includes here
//...
Add #undef max
to the top of the relevant files.