   timeGetTime() function help *solved* mods may delete it.
  Hi,I've been trying the tutorials that come with the directx sdk and everything else is going well except the timeGetTime() function.The code compiles without errors but gives this error when linking:xilink6: executing 'E:\PROGRA~1\MICROS~1\VC98\Bin\link.exe'main.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0Debug/dxtut.exe : fatal error LNK1120: 1 unresolved externalsError executing xilink6.exe.Is it because i'm using Visual C++ 6.0? If so then can someone suggest an alternative to that. I tried the t_time time function but doesn't give results. Thanks.[Edited by - dhulli on June 7, 2008 2:13:09 PM]
MSDN.Quote:Requirements  Windows NT/2000/XP: Included in Windows NT 3.1 and later.  Windows 95/98/Me: Included in Windows 95 and later.  Header: Declared in Mmsystem.h; include Windows.h.  Library: Use Winmm.lib.Add the library. Don't remember how to do that in VC6 right now.   ;  #pragma comment (lib, "winmm.lib")is the directive in visual c++ 2008, I presume the standards haven't changed much for the microsoft linker, but who knows...   ;  Thanks a lot! It works now. I should've checked with MSDN.   