std::string to std::wstring 한글 std::string to std::wstring 헤더 파일 // Util.h #pragma once #include namespace Util { #ifdef _UNICODE std::wstring to_wstring(const std::string& str); std::string to_string(const std::wstring& str); #endif } 소스 파일 // Util.cpp #include "Util.h" #ifdef _UNICODE std::wstring Util::to_wstring(const std::string& str) { std::wstring buf; const int strLength = MultiByteToWideChar(CP_ACP, NULL, str.c_st.. 이전 1 다음