STL 에서 유니코드 사용하는 방법.

프로그래밍 일반에 관한 포럼입니다.

Moderator: 류광

Locked
webyouco
Posts: 94
Joined: 2001-12-01 09:00

STL 에서 유니코드 사용하는 방법.

Post by webyouco »

STL의 string을 유니코드 스트링으로 바꾸고 싶은데 어떻게 해야 할지 모르겠네요.. 어떻게 하면 될까요????
jungmoona
Posts: 111
Joined: 2002-03-12 09:00

유니코드로 바꾸실라믄요

Post by jungmoona »

Code: Select all

#pragma warning(disable:4786) 
#include <string>
using namespace std;

#ifdef _UNICODE
typedef basic_string<wchar_t> tstring;
#else 
typedef basic_string<char>	tstring;
#endif

tstring g_szTEMP;
위처럼 하시면 될겁니당.
...Another one bites the Dust~!...
Locked