lptstr

lptstr to char*

Would anyone hapen to know how to convert a LPTSTR to a char* in c++? Thanks in advance, workinprogress. ...

LPTSTR to int (c++)

Hi, I'm passing some numeric arguments while creating a process (in VC++) I'm stuck at casting LPTSTR to int. Thanks in advance, ...

P/Invoke with [Out] StringBuilder / LPTSTR and multibyte chars: Garbled text?

I'm trying to use P/Invoke to fetch a string (among other things) from an unmanaged DLL, but the string comes out garbled, no matter what I try. I'm not a native Windows coder, so I'm unsure about the character encoding bits. The DLL is set to use "Multi-Byte Character Set", which I can't change (because that would break other project...

Why is the exception thrown on memcpy using during copying LPBYTE to LPTSTR (clipboard)?

Hello, I have a LPBYTE array (taken from file) and I need to copy it into LPTSRT (actually into the clipboard). The trouble is copying work but unstable, sometime an exception was thrown (not always) and I don't understand why. The code is: FILE *fConnect = _wfopen(connectFilePath, _T("rb")); if (!fConnect) return; fseek(fCo...