On Windows CE, you'll need to use the Win32 API time functions or use only the 64-bit version of this function. There are two MSDN forum threads I found useful. Search for "msdn social time function Pinguino Girl" for how to implement your own version of the time function. Search for "msdn social Link error 2019, Please help fwind" for how to use only the 64-bit version of this function.