Hola tengo un problema con el siguiente codigo :
Código Delphi
[-]
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 ?