Hi @ll,
does anyone know a functon that can be used to substitute mktime (under WinCE)?
I need to convert a SYSTEMTIME to time_t and so I wrote the following source code (to be honest, I found it in the www ):
[Edit:] Function mktime causes a linker error because I don't have this function in my SDK. [/Edit]
Perhaps anyone has an idea how to solve this problem. This would really be great.
Regards,
does anyone know a functon that can be used to substitute mktime (under WinCE)?
I need to convert a SYSTEMTIME to time_t and so I wrote the following source code (to be honest, I found it in the www ):
Code:
time_t TimeFromSystemTime(const SYSTEMTIME * pTime)
{
struct tm tm;
memset(&tm, 0, sizeof(tm));
tm.tm_year = pTime->wYear - 1900;
tm.tm_mon = pTime->wMonth - 1;
tm.tm_mday = pTime->wDay;
tm.tm_hour = pTime->wHour;
tm.tm_min = pTime->wMinute;
tm.tm_sec = pTime->wSecond;
return mktime(&tm);
}
[Edit:] Function mktime causes a linker error because I don't have this function in my SDK. [/Edit]
Perhaps anyone has an idea how to solve this problem. This would really be great.
Regards,
Last edited: