Hi,
I need to used in my code the function : WCE_FCTN but i've the following error during compilation for WinCe 5 device:
Erreur 1 error C3861: 'WCE_FCTN': identifier not found c:\Documents and Settings\tlamy.PICKUP\Mes documents\EVC4\Reveil_WinCE5.0\Reveil\Reveil.cpp 179
When i compiled this code for WInCe 4.1 i've no error.
Does this function exists under WinCe 5.0 and if it not exist how could i replace it to get system time in Seconds
Thanks.

WCE_FCTN and WinCE 5
bohiti
You are losing precision here
ft1 += 60*60*24*1*iNanoToSeconds; //add a day
Try changing it to
ft1 += 60*60*24*1* (__int64)iNanoToSeconds; //add a day
slugonamission
razerredblue
thanks for your answers,
I'm using the
CeRunAppAtTime function to wake up an application any 24 hours, when the apps is launch i need to get the system time and add 1 days to it. to do that i use the following code :
int iNanoToSeconds = 10000000;
SYSTEMTIME stfin;
SYSTEMTIME st;
__int64 ft1;
GetSystemTime(&st);
SystemTimeToFileTime(&st, (FILETIME*)&ft1); ft1 += 60*60*24*1*iNanoToSeconds; //add a day
FileTimeToSystemTime((FILETIME*)&ft1, &stfin);
unsigned short heure= 22; unsigned short minute= 15; stfin.wHour=heure;stfin.wMinute=minute;
stfin.wSecond=0;
stfin.wMilliseconds=0;
return
CeRunAppAtTime(L"\\Program Files\\Pickup Services\\GIPDV\\reveil.exe",&stfin);But my apps is waking up only 2 minutes after.... i've done a calcul error but i don't find where, could you help me
Thanks.
Ahsan Ali
WCE_FCTN is defined as follows:
#define WCE_FCTN(func) wce_##func
The idea is that it replaces a call like this:
WCE_FCTN(calloc)
with
wce_calloc
In older SDKs where MFC was a part of the SDK, they used function wrappers for many of the OS APIs (most are defined in wcealt.h). This is gone now. In fact I don't think you are supposed to use WCE_FCTN directly - it was an internal macro.
The good news is that in most cases you can drop it entirely. E.g. instead of
WCE_FCTN(calloc)
use
calloc
To answer your original question (system time in seconds):
Since the absolute time value in seconds does not make any sense, I assume you want to measure time interval. You can do it like this:
mracuraintegra
What is WCE_FCTN
TechedRonan