lpcwstr Questions

2

Solved

I'm trying to convert from string to LPCWSTR (I use multi-bite). 1) For example: LPCWSTR ToLPCWSTR(string text) { LPCWSTR sw = (LPCWSTR)text.c_str(); return sw; } 2) This returns Chinese char...
Hairsplitter asked 1/7, 2016 at 23:26

4

Solved

I get a compilation error on the line: MessageBox(e.getAllExceptionStr().c_str(), _T("Error initializing the sound player")); Error 4 error C2664: 'CWnd::MessageBoxA' : cannot convert parameter ...
Smirch asked 9/3, 2015 at 16:13

5

Solved

I keep getting this error: cannot convert parameter 1 from 'char' to 'LPCWSTR' int main(int argc, char argv[]) { // open port for I/O HANDLE h = CreateFile(argv[1],GENERIC_READ|GENERIC_WRITE,0...
Stanislas asked 13/10, 2010 at 14:45
1

© 2022 - 2024 — McMap. All rights reserved.