※요약
프로젝트 속성이 UNICODE일때, TRACE에서 한글을 사용하면
"_CrtDbgReport: String too long or IO Error" 라는 문구와 함께 에러가 발생할 수 있습니다.
이럴 때는 영어로 찍거나 아래와 같은 코드를 삽입해 주면 됩니다.
※소스
⁄⁄헤더에 추가 #include <locale.h> ⁄⁄소스에 추가 #ifdef _DEBUG _tsetlocale(LC_ALL, _T("korean")); #endif
※국가별 로케일 스트링
Primary language |
Sublanguage |
Language string |
Chinese |
Chinese |
"chinese" |
Chinese |
Chinese (simplified) |
"chinese-simplified" or "chs" |
Chinese |
Chinese (traditional) |
"chinese-traditional" or "cht" |
Czech |
Czech |
"csy" or "czech" |
Danish |
Danish |
"dan" or "danish" |
Dutch |
Dutch (default) |
"dutch" or "nld" |
Dutch |
Dutch (Belgium) |
"belgian", "dutch-belgian", or "nlb" |
English |
English (default) |
"english" |
English |
English (Australia) |
"australian", "ena", or "english-aus" |
English |
English (Canada) |
"canadian", "enc", or "english-can" |
English |
English (New Zealand) |
"english-nz" or "enz" |
English |
English (United Kingdom) |
"eng", "english-uk", or "uk" |
English |
English (United States) |
"american", "american english", "american-english", "english-american", "english-us", "english-usa", "enu", "us", or "usa" |
Finnish |
Finnish |
"fin" or "finnish" |
French |
French (default) |
"fra" or "french" |
French |
French (Belgium) |
"frb" or "french-belgian" |
French |
French (Canada) |
"frc" or "french-canadian" |
French |
French (Switzerland) |
"french-swiss" or "frs" |
German |
German (default) |
"deu" or "german" |
German |
German (Austria) |
"dea" or "german-austrian" |
German |
German (Switzerland) |
"des", "german-swiss", or "swiss" |
Greek |
Greek |
"ell" or "greek" |
Hungarian |
Hungarian |
"hun" or "hungarian" |
Icelandic |
Icelandic |
"icelandic" or "isl" |
Italian |
Italian (default) |
"ita" or "italian" |
Italian |
Italian (Switzerland) |
"italian-swiss" or "its" |
Japanese |
Japanese |
"japanese" or "jpn" |
Korean |
Korean |
"kor" or "korean" |
Norwegian |
Norwegian (default) |
"norwegian" |
Norwegian |
Norwegian (Bokmal) |
"nor" or "norwegian-bokmal" |
Norwegian |
Norwegian (Nynorsk) |
"non" or "norwegian-nynorsk" |
Polish |
Polish |
"plk" or "polish" |
Portuguese |
Portuguese (default) |
"portuguese" or "ptg" |
Portuguese |
Portuguese (Brazil) |
"portuguese-brazilian" or "ptb" |
Russian |
Russian (default) |
"rus" or "russian" |
Slovak |
Slovak |
"sky" or "slovak" |
Spanish |
Spanish (default) |
"esp" or "spanish" |
Spanish |
Spanish (Mexico) |
"esm" or "spanish-mexican" |
Spanish |
Spanish (Modern) |
"esn" or "spanish-modern" |
Swedish |
Swedish |
"sve" or "swedish" |
Turkish |
Turkish |
"trk" or "turkish" |
'Visual Studio > Visual Studio 에러' 카테고리의 다른 글
InitializeConditionVariable을 DLL KERNEL32.dll에서 찾을 수 없습니다. (0) | 2016.01.29 |
---|---|
MFC 프로젝트 - Debug Assertion Failed : wincore.cpp (4) | 2014.07.31 |
warning LNK4099 pdb 디버그 정보가 없는 것처럼 개체를 링크합니다. (0) | 2014.07.29 |
Visual Studio 2010 - COFF로 변환하는 동안 오류가 발생했습니다 (0) | 2013.12.12 |
Visual Studio 2008 - fatal error LNK1000: Internal error during IncrBuildImage (0) | 2013.10.23 |