D
Hallo,
nicht schön, aber es liefert das gewünschte Ergebnis:
CTime time3( osBinaryTime ); // CTime from C run-time time
char y[12] ="";
char m[12] ="";
char d[12] ="";
int dx=time3.GetDay();
int mx=time3.GetMonth();
dx = dx +100;
mx = mx +100;
sprintf(y,"%d",time3.GetYear());
sprintf(m,"%d",mx);
sprintf(d,"%d",dx);
CString yyyy=y;
CString mm=m;
CString dd=d;
Anstelle von sprintf benutzt man heutzutage wahrscheinlich eher yyyy.Format("%d",y) oder ähnlich. Der Code ist schon etwas älter