The system time is required in C , and the acquisition time can be called directly with the function in C.
void cyttydlg :: onbutton7 ()
{
// Todo: Add Your Control Notification Handler Code Here
INT S = TIME ((Time_t *) NULL);
Cstring aa;
AA.Format ("% D", s);
AfxMessageBox (AA);
}
There are also many cases that can directly call the C language function, and try not to try.