프로그래밍/Windows
아스키코드 -> 유니코드 문자열 변환 함수
즉흥
2015. 6. 3. 15:56
728x90
반응형
1 2 3 4 5 6 7 8 9 10 11 | #include<cstdio> #include<atlstr.h> #include<atlconv.h> #include<windows.h> int main(){ TCHAR str[50] = { 0, }; USES_CONVERSION; _tcscpy(str, A2T("test")); MessageBox(NULL, str, L"test", MB_OK); } | cs |
A2T를 사용하는 함수마다 한 번씩 USES_CONVERSION; 을 써줘야 하나보다.
728x90
반응형