프로그래밍/MFC
오류 해결 - Buffer too small
완소루피
2020. 11. 13. 00:05
728x90
반응형
CString str= _T("");
str.Format(_T("%s %d"), str, nCount);
이렇게 할경우 buffer too small 에러 발생
원인 Format에 자신의 인자를 넣었기 때문
해결 str.AppendFormat(_T("%d"), nCount); 자기자신 str을 제외
728x90
반응형