VS 2005 compiles Windows mobile 5.0 pocket PC projects that use time()/localtime(), but the linker does not find their implementation. So which replacements exist under Windows CE that I can use
VS 2005 compiles Windows mobile 5.0 pocket PC projects that use time()/localtime(), but the linker does not find their implementation. So which replacements exist under Windows CE that I can use
time() / localtime() in VS 2005 Windows mobile 5.0 pocket PC projects
Scott Fletcher
Also, you can use other time related functions like GetLocalTime(). For complete list of time related functions, please follow the following path on MSDN:
MSDN Home > MSDN Library > Mobile and Embedded Development > Embedded Operating System Development > Windows CE > Windows CE 3.0 API Reference >
or follow the link http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcesdkr/html/wcesdkrGetSystemTime.asp for GetLocalTime() function.
I hope it helps.
scompa
Thanks for such a wonderful post. You saved a lot of my time.
Thanks,
--Premal
Jon Voigt
Maybe you can try to use SYSTEMTIME structure instead of use localtime() function. Like this:
SYSTEMTIME curTime;
GetSystemTime(&curTime);
Hope this can helpful.