CString strTime;
strTime.Format("%c%c%c%c%c%c%",csLocalTime->csyear,csLocalTime->csmonth,...);或用Memcpy((LPTSTR)strTime,csLocalTime,6);
strTime.Format("%c%c%c%c%c%c%",csLocalTime->csyear,csLocalTime->csmonth,...);或用Memcpy((LPTSTR)strTime,csLocalTime,6);
csLocalTime不是一个类的对象,csLocalTime->csyear这样不对吧
第二个方法说:cannot convert from 'class CString' to 'char *'
CString::ReleaseBuffer();
char* a = str.getbuffer(100);