convert const char* to LPWSTR code example Example: convert const char* to LPWSTR const char* txt = "some_text"; LPWSTR new_text = (LPWSTR)txt;