0

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() ?

Thanks

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by mikey123
0

I figured it out. In another cpp file i had a function that was calling GetTickCount64() directly, and I just assumed that it was my GetTickCount() being re-defined.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.