Resultados da pesquisa a pedido "lpcwstr"

1 a resposta

C ++ lpcwstr para wstring

Eu gostaria de converter um LPCWSTR para wstring em C ++ (VS 2010). Eu quero usar isso em OutputDebugStringW ().Obrigado.

4 a resposta

Elenco (const) char * para LPCWSTR [duplicado]

Esta questão já tem uma resposta aqui:Como converter uma string char em uma string wchar_t? 4 respostasEstou tentando usar

5 a resposta

não é possível converter o parâmetro 1 de 'char' para 'LPCWSTR'

Eu continuo recebendo esse erro: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,NULL,OPEN_EXISTING,0,NULL); if(h == ...