http://stackoverflow.com/questions/19715144/how-to-convert-char-to-lpcwstr LPCWSTR convertCharArrayToLPCWSTR(const char* charArray) { wchar_t* wString = new wchar_t[4096]; MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096); return wString; }