随笔分类 - WTL
摘要: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
阅读全文

浙公网安备 33010602011771号