뭐 헤더를 만드니 뭐니 여러 방법이 있었는데, 다 필요없고
아래에 있는 헤더 추가해주고 CString사용
#include <atlstr.h>
물론 #include <cstring>과 혼동하지 말길...
난 혼동해서 잘못사용할뻔...
예시를 들면
#include <atlstr.h>
...
int i = 1004;
CString str;
str.Format("%d", i);
MessageBox(str);
...
CString이 뭔지는 나중에... 문자열 다루기가 참 편함
출처 - http://gshan85.tistory.com/36
'언어 > C언어' 카테고리의 다른 글
임의의 파일을 동적으로 버퍼에 저장 (0) | 2013.01.11 |
---|---|
WSAStartup (0) | 2013.01.04 |