Original Post
Hi all,
I have a CDateTimeCtrl in a form view. When a user clicks on a get time button, I retrieve the time using the following code:
CTime time;
DWORD dwResult = m_TimeSetter.GetTime(time);
int timeSec = time.GetSecond();
printf("\n timeSec %d",&timeSec);
The value of timeSec is printed out as 1243036 even when the Control''s second field is set to zero. Any thoughts ? ..
tx