一.函数原型 CString::GetBuffer LPTSTR GetBuffer( int nMinBufLength ); throw( CMemoryException ); Return Value An LPTSTR pointer to the object’s (null-terminated) character buffer. Parameters nMinBufLength The minimum size of the character buffer in charac…
1.format 可以帮助各种类型转换成CString. a. int 转 CString CString str; int number = 4; str.Format(_T("%d"),number); b. double 转 CString CString str; double num = 1.46; str.Format(_T("%lf"),num); c. 将十进制转为八进制 CString str; int num = 255; str.Format…