Top "Wchar-t" questions

`wchar_t` is a fundamental data type in the C and C++ programming languages, and it stands for "wide character". Its intended use is to hold any character value from "the system's character set".

Convert wchar_t to int

how can I convert a wchar_t ('9') to a digit in the form of an int (9)? I have …

c++ wchar-t
cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}'

I'm getting an error in my C++ code that I can't quite make sense of. The stripped down code bits …

c++ qt char type-conversion wchar-t
Why isn't wchar_t widely used in code for Linux / related platforms?

This intrigues me, so I'm going to ask - for what reason is wchar_t not used so widely on …

c unicode wchar-t
Outputting 'wchar_t*' to an 'ofstream'

I want to output a text to a file via two pointers that I have declared: wchar_t *Col1="dsffsd", *…

c++ file std wchar-t wofstream
Convert wchar_t to string?

I have a wchar_t I'd like to convert to a string. The string should then be read using stringstream. …

c++ wchar-t
Using wsprintf to convert int to wchar_t*

I'm trying to get a wchar_t* formatted with an int as a parameter. I've Googled a lot but I've …

c wchar-t
How do I convert from a wchar_t* to a wstring?

Or how to I initialize a wstring using a wchar_t*? I tried something like this, but it's not quite …

c++ wchar-t wstring
Cast (const) char * to LPCWSTR

I'm trying to use FindWindow() from WinAPI, and I want to ask an input for window's title from the user: …

c++ winapi char wchar-t lpcwstr
UTF-8 Compatibility in C++

I am writing a program that needs to be able to work with text in all languages. My understanding is …

c++ unicode utf-8 wchar-t wstring
Is wchar_t just a typedef of unsigned short?

for example, does: wchar_t x; translate to: unsigned short x;

c++ c unsigned short wchar-t