Top "Lpcwstr" questions

LPCWSTR - Pointer to const wchar_t string

cannot convert parameter 1 from 'char' to 'LPCWSTR'

I keep getting this error: cannot convert parameter 1 from 'char' to 'LPCWSTR' int main(int argc, char argv[]) { // open port …

c++ windows createfile lpcwstr
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
C++ get the length of LPCWSTR and LPVOID

The winapi function WinHttpSendRequest() wants the size of the second parameter in the third one and the size of the …

c++ string-length lpcwstr
String to LPCWSTR in c++

I'm trying to convert from string to LPCWSTR (I use multi-bite). 1) For example: LPCWSTR ToLPCWSTR(string text) { LPCWSTR sw = (LPCWSTR)…

c++ string visual-studio lpcwstr
Cannot convert parameter 1 from 'const wchar_t *' to 'LPCTSTR' in MFC / C++ project

I get a compilation error on the line: MessageBox(e.getAllExceptionStr().c_str(), _T("Error initializing the sound player")); Error 4 …

c++ string mfc tchar lpcwstr
C++ lpcwstr to wstring

I would like to convert a LPCWSTR to wstring in C++ (VS 2010). I want to use this in OutputDebugStringW(). Thank …

c++ wstring lpcwstr
LPCWSTR to char* and vice versa

I'm working on a simple project with DirectX9. I'm having a little snag with some conversion of data types, and …

c++ char type-conversion directx-9 lpcwstr