[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
RPG » CppWchar_t
The range of a char_t can be found at compile time with std::numeric_limits.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
RPG » CppWchar_t
(C++) wchar_t
wchar_t is a data type (and thus a keyword) that can contain characters.The range of a char_t can be found at compile time with std::numeric_limits.
Converting wchar_t to char
From a discussion here, thanks to Stober:
wchar_t helloW[] = _TEXT("Hello World");
char helloA[20] = {0};
// now convert the string
wcstombs(helloA, helloW, wcslen(helloW)+1);
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
