std::string directoryPath;
std::wstring wPullPathFilename;
wPullPathFilename.assign( directoryPath.begin(),directoryPath.end() );
예상하듯 string 에서 wstring 으로 변환은 괜찮지만
wstring 에서 string 으로 변환시 문자를 표현하는 특성상 제대로 표현되지 않을 수 있다
반응형
'STLTemplate > STL & EffectiveSTL' 카테고리의 다른 글
shared_ptr의 궁금증 Test (0) | 2016.03.29 |
---|---|
기초 : C++ STL 프로그래밍(10)-알고리즘2 (0) | 2012.12.27 |
기초 : C++ STL 프로그래밍(9)-알고리즘1 (0) | 2012.12.27 |
기초 : C++ STL 프로그래밍(8)-셋(Set) (0) | 2012.12.27 |
기초 : C++ STL 프로그래밍(7)-맵(Map) (0) | 2012.12.27 |