Tema: Delphi 2010
Ver Mensaje Individual
  #1  
Antiguo 27-04-2010
Avatar de RebeccaGL
RebeccaGL RebeccaGL is offline
Miembro
 
Registrado: ene 2008
Posts: 199
Reputación: 17
RebeccaGL Va por buen camino
Delphi 2010

Hola amigos.

Me compre el Delphi 2010, lo instale pero al cargar un proyecto hecho en Delphi 7, me da errores de incompatibilidad de array y PWideChar y varios errores mas.

Ejemplo aca alguno de los errores:

Código Delphi [-]
 
function StrRetToString(PIDL: PItemIDList; StrRet: TStrRet; Flag:string=''): string;
var
  P: PChar;
begin
  case StrRet.uType of
    STRRET_CSTR:
      SetString(Result, StrRet.cStr, lStrLen(StrRet.cStr));
    STRRET_OFFSET:
      begin
        P := @PIDL.mkid.abID[StrRet.uOffset - SizeOf(PIDL.mkid.cb)];
        SetString(Result, P, PIDL.mkid.cb - StrRet.uOffset);
      end;
    STRRET_WSTR:
      if Assigned(StrRet.pOleStr) then
        Result := StrRet.pOleStr
      else
        Result := '';  
  end;

E2010 Incompatible type array and PWideChar

Mi pregunta es habria alguna forma de activar o desactivar alguna opcion del compilador para que compile el proyecto como con Delphi 7, sin error alguno y no tener que modificar un proyecto de 50,000 lineas de codigo que es mucho.
Responder Con Cita