CString 操作--GetBuffer()

Posted on 2006-02-27 14:01 daiybh 阅读(375) 评论(0)  编辑 收藏 引用
连接
在 用了 GetBuffer() 后 应该用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一样

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理