nakka soft world !
[MFC] CString <-> string 본문
728x90
이것 저것 많이 해봤지만 아래가 짱이다.
< 유니코드 문자 집합 사용시 >
: 속성 -> 구성 속성 -> 일반 -> 문자집합
CString strPathName = "aaa";
string str = std::string(CT2CA(strPathName.operator LPCWSTR()))
출처 : http://adnoctum.tistory.com/749
아래도 좋은 사이트
http://cinema4dr12.tistory.com/entry/CC-MFC-CString%EA%B3%BC-stdstring-%ED%83%80%EC%9E%85-%EB%B3%80%ED%99%98
728x90
'프로그래밍언어 > C++' 카테고리의 다른 글
[IT] Bitbake not found (try using -rpath or -rpath-link) 에러 (0) | 2021.03.31 |
---|---|
[C++] 간단한 Circular Queue (0) | 2019.05.08 |
C++ 파일 입출력 (0) | 2017.03.27 |
iostream, cin (0) | 2017.03.27 |
예외 (Exception) (0) | 2017.03.27 |
Comments