連接
在 用了 GetBuffer() 后 應(yīng)該用ReleaseBuffer() 來善后,才能用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一樣
在 用了 GetBuffer() 后 應(yīng)該用ReleaseBuffer() 來善后,才能用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一樣