S
Sumpfman
Hi there,
i really got stuck on working with this. The user should be able to
set his usr_delay as argument and later on i want to do some math with
this (adding usr_delay to the time i get from the NetRemoteTOD
function) so i need to convert the userinput to int.
int wmain(int argc, wchar_t *argv[])
{
LPTIME_OF_DAY_INFO pBuf = NULL;
NET_API_STATUS nStatus;
LPTSTR pszServerName = NULL;
int usr_delay;
pszServerName = argv[1];
usr_delay = *argv[2] // definitely won't work!! It's just an
example for what i want to do.
nStatus = NetRemoteTOD(pszServerName,
(LPBYTE *)&pBuf);
return(0);
}
This might be quite easy but i just can't get it working :|
Thx in advance...
MFG Chris
i really got stuck on working with this. The user should be able to
set his usr_delay as argument and later on i want to do some math with
this (adding usr_delay to the time i get from the NetRemoteTOD
function) so i need to convert the userinput to int.
int wmain(int argc, wchar_t *argv[])
{
LPTIME_OF_DAY_INFO pBuf = NULL;
NET_API_STATUS nStatus;
LPTSTR pszServerName = NULL;
int usr_delay;
pszServerName = argv[1];
usr_delay = *argv[2] // definitely won't work!! It's just an
example for what i want to do.
nStatus = NetRemoteTOD(pszServerName,
(LPBYTE *)&pBuf);
return(0);
}
This might be quite easy but i just can't get it working :|
Thx in advance...
MFG Chris