MSDN中 AfxFormatString1() 函数的使用方法 -明白结贴
AfxFormatString1()第二个参数什么意思??
void AfxFormatString2( CString& rString, UINT nIDS, LPCTSTR lpsz1, LPCTSTR lpsz2 );
Parameters
rString
A reference to the CString that will contain the resultant string after the substitution is performed.
nIDS
The string table ID of the template string on which the substitution will be performed.
lpsz1
A string that will replace the format characters "%1" in the template string.
lpsz2
A string that will replace the format characters "%2" in the template string.
我的程序如下:
CString message = "File %1 not found";
AfxFormatString1(message,1,"C:\MYFILE.TXT");