Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   OOP (https://www.clubdelphi.com/foros/forumdisplay.php?f=5)
-   -   Aplicación programada con Delphi 5 quiero que funcione con Delphi 7 (https://www.clubdelphi.com/foros/showthread.php?t=57103)

pringaodoficina 05-06-2008 14:38:26

Aplicación programada con Delphi 5 quiero que funcione con Delphi 7
 
Compilo una aplicación programada con Delphi 5 y quiero que funcione con Delphi 7. Me dan los siguientes errores:

[Warning] ULibreri.pas(290): Unsafe code '@ operator'
[Warning] ULibreri.pas(291): Unsafe code '@ operator'
[Warning] ULibreri.pas(307): Unsafe type 'PChar'
[Warning] ULibreri.pas(309): Unsafe type 'Prog: PAnsiChar'
[Warning] ULibreri.pas(310): Unsafe type 'Prog: PAnsiChar'
[Warning] ULibreri.pas(310): Unsafe type 'Prog: PAnsiChar'
[Warning] ULibreri.pas(311): Unsafe type 'Prog: PAnsiChar'
[Warning] ULibreri.pas(313): Unsafe type 'Prog: PAnsiChar'
[Warning] ULibreri.pas(325): Unsafe type 'PChar'
[Warning] ULibreri.pas(327): Unsafe type 'PChar'
[Error] ULibreri.pas(470): Undeclared identifier: 'VarArrayCreate'
[Warning] ULibreri.pas(482): Unsafe code 'String index to var param'
[Error] ULibreri.pas(504): Undeclared identifier: 'VarArrayCreate'
[Warning] ULibreri.pas(520): Unsafe code 'String index to var param'
[Warning] ULibreri.pas(624): Unsafe code 'String index to var param'
[Warning] ULibreri.pas(639): Unsafe code 'String index to var param'
[Warning] ULibreri.pas(642): Unsafe code 'String index to var param'
[Error] ULibreri.pas(1331): Undeclared identifier: 'VarArrayOf'
[Error] ULibreri.pas(1332): Undeclared identifier: 'VarIsArray'
[Error] ULibreri.pas(1337): Undeclared identifier: 'VarArrayHighBound'
[Error] ULibreri.pas(1337): Undeclared identifier: 'VarArrayLowBound'
[Error] ULibreri.pas(1338): Undeclared identifier: 'VarArrayCreate'
[Error] ULibreri.pas(1394): Undeclared identifier: 'VarType'
[Warning] ULibreri.pas(1394): Comparing signed and unsigned types - widened both operands
[Warning] ULibreri.pas(1395): Comparing signed and unsigned types - widened both operands
[Warning] ULibreri.pas(1396): Comparing signed and unsigned types - widened both operands
[Warning] ULibreri.pas(1397): Comparing signed and unsigned types - widened both operands
[Warning] ULibreri.pas(1398): Comparing signed and unsigned types - widened both operands
[Error] ULibreri.pas(1409): Undeclared identifier: 'VarIsEmpty'
[Error] ULibreri.pas(1411): Undeclared identifier: 'VarIsNull'
[Error] ULibreri.pas(1416): Undeclared identifier: 'VarToStr'
[Error] ULibreri.pas(1424): Undeclared identifier: 'VarIsEmpty'
[Error] ULibreri.pas(1424): Undeclared identifier: 'VarIsNull'
[Warning] ULibreri.pas(1424): Combining signed and unsigned types - widened both operands
[Error] ULibreri.pas(1429): Undeclared identifier: 'VarToStr'
[Error] ULibreri.pas(1436): Undeclared identifier: 'Null'
[Error] ULibreri.pas(1451): Undeclared identifier: 'VarArrayDimCount'
[Error] ULibreri.pas(1461): Undeclared identifier: 'VarArrayLowBound'
[Error] ULibreri.pas(1462): Undeclared identifier: 'VarArrayHighBound'
[Error] ULibreri.pas(1497): Undeclared identifier: 'VarArrayDimCount'
[Error] ULibreri.pas(1512): Undeclared identifier: 'VarArrayLowBound'
[Error] ULibreri.pas(1513): Undeclared identifier: 'VarArrayHighBound'
[Warning] ULibreri.pas(2079): Unsafe type 'Pointer'
[Warning] ULibreri.pas(2083): Unsafe type 'PChar'
[Warning] ULibreri.pas(2086): Unsafe code 'GetMem'
[Warning] ULibreri.pas(2088): Unsafe type 'PChar'
[Warning] ULibreri.pas(2088): Unsafe type 'VerBuf: Pointer'
[Warning] ULibreri.pas(2089): Unsafe type 'VerBuf: Pointer'
[Warning] ULibreri.pas(2089): Unsafe type 'Pointer'
[Warning] ULibreri.pas(2096): Unsafe code 'FreeMem'
[Warning] ULibreri.pas(2106): Unsafe type 'PChar'
[Warning] ULibreri.pas(2111): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2113): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2114): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2116): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2123): Unsafe type 'PChar'
[Warning] ULibreri.pas(2128): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2130): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2131): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2133): Unsafe type 'MiPChar: PAnsiChar'
[Warning] ULibreri.pas(2175): Unsafe type 'PChar'
[Warning] ULibreri.pas(2188): Unsafe type 'PChar'
[Error] ULibreri.pas(2260): Undeclared identifier: 'VarArrayCreate'
[Error] ULibreri.pas(2261): Undeclared identifier: 'VarArrayHighBound'
[Error] ULibreri.pas(2283): Undeclared identifier: 'VarArrayLowBound'
[Error] ULibreri.pas(3820): Undeclared identifier: 'UnAssigned'
[Fatal Error] UFVacia.pas(90): Could not compile used unit '..\General\ULibreri.pas'

No soy experto en Delphi, pero he investigado bastante y no he encontrado ninguna posible solucion.

xEsk 05-06-2008 14:45:11

Creo que el problema tiene que ver con que entre Delphi 5 y Delphi 7 hay cambios importantes en el tema de los "Variant", "Ole", etc...

En pocas palabras, que no son compatibles, si me equivoco que alguien me corrija.

Por ahí leí (si no recuerdo mal) que una de las soluciones era usar las unit de Delphi5 en Delphi7, para evitar estos problemas de incompatibilidad, pero no lo he hecho ni necesitado nunca, así que hablo sólo de cosas que me parece haber leído.

Saludos.

Neftali [Germán.Estévez] 05-06-2008 15:46:23

Por lo pronto prueba a añadir la unit Variants al uses y vuelve a compilar.

eduarcol 05-06-2008 17:51:29

en project --> options, la pestaña compiler messages, alli puedes quitar unos warning...


La franja horaria es GMT +2. Ahora son las 21:44:49.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi