Call this member function to write formatted data to a CString in the same way that sprintf formats data into a C-style character array. This function formats and stores a series of characters and values in the CString. Each optional argument (if any) is converted and output according to the corresponding format specification in lpszFormat or from the string resource identified by nFormatID.
void Format( LPCTSTR lpszFormat, ... );
void Format( UINT nFormatID, ... );
Header File | Afx.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CString Overview, CString Member Functions, Simple Value Types, CString::GetBuffer