timeGetTime() illegal ?
-
greetings all. I have a project consisting of about 20 source files. In some the call to timeGetTime() works. In others it is an illegal identifier. What include file do I need for this API call ? Cheers If sex is a pain in the ass, then you are doing it all wrong!
-
greetings all. I have a project consisting of about 20 source files. In some the call to timeGetTime() works. In others it is an illegal identifier. What include file do I need for this API call ? Cheers If sex is a pain in the ass, then you are doing it all wrong!
-
Header: Declared in Mmsystem.h; include Windows.h. Library: Use Winmm.lib. How about taking a look at the MSDN? (no offense :)) regards
Thanks...no offense taken... I have a few problems with MSDN and the C++ help files: namely that they told me that I needed a header called windows.h The source file in question has the following includes windows.h windowsx.h ddraw.h stdio.h (Exactly the same headers as the source file that works). NB: noticed that the source files that use timegetTime() are all class member functions: what is going on....MSDN does not cover this one (or I can't drive it). Cheers If sex is a pain in the ass, then you are doing it wrong!
-
Thanks...no offense taken... I have a few problems with MSDN and the C++ help files: namely that they told me that I needed a header called windows.h The source file in question has the following includes windows.h windowsx.h ddraw.h stdio.h (Exactly the same headers as the source file that works). NB: noticed that the source files that use timegetTime() are all class member functions: what is going on....MSDN does not cover this one (or I can't drive it). Cheers If sex is a pain in the ass, then you are doing it wrong!
-
Well, if your project includes these four includes, then there's missing the mmsystem.h header file. And second, link with winmm.lib. I do it this way: #pragma comment(lib, "winmm.lib") But you can do it in the project options as well.
Cheers. I found some code that had the include winmm.lib and used that: worked fine. Can anyone shed light on why the object source files had no problem when they had the same include statements ? Thanks for all responses: much appreciated.;) If sex is a pain in the ass, then you are doing it wrong!