In VS9, when i call the GetTickCount() function, it automatically converts it into the GetTickCount64() function upon compilation. This second function only works on Vista+, and thus my program errors when run on XP.
I have tried adding the follow in 'targetver.h', but it did not make a difference:
#define WINVER 0x0501 #define _WIN32_WINNT 0x0501 #define _WIN32_WINDOWS 0x0501
However, when i create a simple new project that prints out GetTickCount(), it works fine on XP even without me having to define the above.
How can I 'over-ride' this so that it calls the original GetTickCount() ?