strRoll.Format("%d",delta);//%d正确。
strRoll+="\n";
strRoll.Insert(0,"向前滚动:");
GetDlgItem(IDC_WHEELROLL)->SetWindowTextA(strRoll);
使用CString时造成内存泄漏,怎样都找不到解决办法,后来发现
用来输出十进制整型的%d,写出d%,竟然编译通过,不过造成内存泄漏,
d%是啥意思哈?
http://bbs.youkuaiyun.com/topics/370162009