Posted on 2006-02-27 14:01
daiybh 閱讀(387)
評(píng)論(0) 編輯 收藏 引用
連接
在 用了 GetBuffer() 后 應(yīng)該用ReleaseBuffer() 來(lái)善后,才能用CString 其他的操作
msdn 中描述為
If you use the pointer returned by GetBuffer to change the string
contents, you must call ReleaseBuffer before using any other CString
member functions.
就象 new 了之后要delete一樣