参考MSDN如下:
The call will fail if the string object itself is offered as a parameter to Format. For example, the following code:

CString str = "Some Data";
str.Format(_T("%s%d"), str, 123) );   // Attention: str is also used in the parameter list.
causes unpredictable results.

今天也遇到了,CString自己format自己,
前10幾次都沒事,format到字串一定大小的時程式會掛掉。
創作者介紹
創作者 Bright的部落格 的頭像
Bright

Bright的部落格

Bright 發表在 痞客邦 留言(0) 人氣( 77 )