JuanOrtega
30-04-2015, 19:40:25
Hola tengo un problema con el siguiente codigo :
var test:string;
begin
test := 'test';
MessageBox(0, 'test : ' + Pchar(test), 'test',MB_ICONINFORMATION);
end;
El problema es que siempre me devuelve el clasico error : "Incompatible types: 'PWideChar' and 'string'" intente usando Pchar() y PWideChar() pero el error siempre es el mismo.
¿ Como soluciono esto ?
var test:string;
begin
test := 'test';
MessageBox(0, 'test : ' + Pchar(test), 'test',MB_ICONINFORMATION);
end;
El problema es que siempre me devuelve el clasico error : "Incompatible types: 'PWideChar' and 'string'" intente usando Pchar() y PWideChar() pero el error siempre es el mismo.
¿ Como soluciono esto ?