Today we received report from one of our customers about problem with our ORM Designer on WindowsXP – 32bit. Our latest version returns following error:
The procedure entry point GetTickCount64 could not be located in the dynamic link library KERNEL32.dll
The problem is that GetTickCount64 doesn’t exists in XP system.
Solution:
It’s necessary to compile your application (and any library which uses GetTickCount64) with correct WINVER and _WIN32_WINNT defines value. List of WINVER values for all Windows version can be found here.
You can define these values in your resource.h file:
#define WINVER 0x0501
#define _WIN32_WINNT 0x0501
or add it to a project property -> C/C++ -> Preprocessor -> Preprocessor Definitions:
Qt Solution:
If you want to define these values automatically in Qt project, add following lines to your .pro file:
#Windows XP compatability
DEFINES += "WINVER=0x0501"
DEFINES += "_WIN32_WINNT=0x0501"
External links:
- http://stackoverflow.com/questions/17842981/the-procedure-entry-point-gettickcount64-could-not-be-located-in-the-dynamic-l
- http://stackoverflow.com/questions/3348711/add-a-define-to-qmake-with-a-value
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
- http://msdn.microsoft.com/en-us/library/6sehtctf.aspx