内存泄漏

来源:互联网 发布:知乎 神话类电视剧 编辑:程序博客网 时间:2024/05/15 07:51

strRoll.Format("%d",delta);//%d正确。strRoll+="\n";strRoll.Insert(0,"向前滚动:");GetDlgItem(IDC_WHEELROLL)->SetWindowTextA(strRoll);

使用CString时造成内存泄漏,怎样都找不到解决办法,后来发现

用来输出十进制整型的%d,写出d%,竟然编译通过,不过造成内存泄漏,
d%是啥意思哈?
http://bbs.csdn.net/topics/370162009


0 0