This method writes formatted data to a CString in the same way that sprintf formats data into a C-style character array. This method formats and stores a series of characters and values in the CString. Each optional parameter (if any) is converted and output according to the corresponding format specification in lpszFormat or from the string resource identified by nFormatID.
Header file: | Afx.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
void Format( LPCTSTR lpszFormat, ... );
void Format( UINT nFormatID, ... );