Dear all,
I m trying to retrieve a value Timing1 from a dialog box named CTimeDlg to my CMainFrame. The code that I use is as follows:
CTimeDlg Timedlg;
CTime STime = Timedlg.Timing1;
CTime Now = CTime::GetCurentTime();
CTimeSpan Interval = Now - STime;
CString Timing = Interval.Format("%H:%M:%S"
The value of Timing is obtained but is not the expected value. I found that the value of Timedlg.Timing1 is not the expected value that I intended to retrieve. It has taken on some other value though I have no idea where the value is gotten from. Compilation generates no error. Is there something wrong with the way I retrieve my ata? Please advise......thanks
I m trying to retrieve a value Timing1 from a dialog box named CTimeDlg to my CMainFrame. The code that I use is as follows:
CTimeDlg Timedlg;
CTime STime = Timedlg.Timing1;
CTime Now = CTime::GetCurentTime();
CTimeSpan Interval = Now - STime;
CString Timing = Interval.Format("%H:%M:%S"
The value of Timing is obtained but is not the expected value. I found that the value of Timedlg.Timing1 is not the expected value that I intended to retrieve. It has taken on some other value though I have no idea where the value is gotten from. Compilation generates no error. Is there something wrong with the way I retrieve my ata? Please advise......thanks