Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

UNICODE

Name: N00b 2010-07-07 20:41

Hi, i'm quite new to programming and i am getting an error saying MBCS is no longer supported and i should use UNICODE builds.

I want to know what one is so i can do it and continue programming, can anyone explain please?

Name: Someone else 2010-07-08 20:27

>>35
wchar.h here (for wchar_t).

As for Win32, in MSVC, MS had the brilliant idea of making a type(macro TCHAR) which would represent normal characters(char) or multibyte ones in one case, and "UNICODE" (UTF-16, WCHAR, or wchar_t) in the other case (depends if UNICODE macro is defined). Similar _t* macros are defined for various API calls and libc functions. The idea is that you can build both ANSI and UNICODE applications form the same code. ANSI applications can be useful if compatibility with even old Win32 platforms is desired (9x had crappy unicode support), and in fact, most applications these days tend to be ANSI apps and only a few properly support UNICODE.

It might be worth mentioning that even if this is a MSVC extension, there is nothing preventing you from implementing a setup like this in portable C, as long as your C library has unicode versions of standard libc functions.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List