随笔分类 -  WTL

摘要:live write 阅读全文
posted @ 2011-01-28 15:25 mok'blog 阅读(186) 评论(0) 推荐(0)
摘要:LPTSTR lpszStr = new TCHAR[1024];//memset(str,0,1024);//CString str;m_edit.GetWindowText(str);//m_edit.AppendText(str);this-MessageBox(str);delete[] str; 这样写 delete会出错,不delete就会内存泄漏。当不调用 GetWindowText时 delete是不会出错的vs 提示 其原因可能是堆被损坏 好好的调用了一下GetWindowText怎么会堆被损坏呢?BOOL GetWindowText(BSTR& bstrText) thr 阅读全文
posted @ 2011-01-28 14:48 mok'blog 阅读(951) 评论(0) 推荐(0)