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.
How can I ‘over-ride’ this so that it calls the original GetTickCount() ?
Thanks
Set
WINVERto the version of windows you want to target. Or maybe it’s_WIN32_WINNTor_WIN32_WINDOWS. Maybe even all of them…Take a look at https://devblogs.microsoft.com/oldnewthing/20070411-00/?p=27283 for details on that small mess-o-version macros.
However, I don’t see that redefinition at all in the Windows SDK – could there be something else in our setup that’s doing the redefinition (or maybe I’m missing it…)?