Ver Mensaje Individual
  #1  
Antiguo 30-04-2015
JuanOrtega JuanOrtega is offline
Miembro
NULL
 
Registrado: sep 2011
Posts: 130
Reputación: 13
JuanOrtega Va por buen camino
Incompatible types: 'PWideChar' and 'string'

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 ?
Responder Con Cita