![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
|
Que libreria de la Unit Utils es compatible con Delphi 12.2
Hola: Estoy migrando un proyecto de Delphi 7 a Delphi 12.2 donde uso los componentes de DevExpress y especialmente el dxBar el cual se relaciona con la Unit Utils, en Deplhi 7 todo corría perfectamente pero cuando lo compilo ahora me da este error en esa Unit:
Cita:
[dcc32 Error] Utils.pas(497): E2010 Incompatible types: 'Cardinal' and 'Pointer' [dcc32 Error] Utils.pas(497): E2010 Incompatible types: 'string' and 'Pointer' [dcc32 Error] Utils.pas(501): E2010 Incompatible types: 'Cardinal' and 'Pointer' [dcc32 Fatal Error] AppBase.pas(34): F2063 Could not compile used unit 'Utils.pas' Saludos Luis Garcia Suave para que se te de |
|
#2
|
||||
|
||||
|
Prueba a llamarlas sin los @.
Si no funciona, revisa las units en DevExpress o la ayuda a ver cual es la sintaxis nueva de esas funciones.
__________________
Germán Estévez => Web/Blog Guía de estilo, Guía alternativa Utiliza TAG's en tus mensajes. Contactar con el Clubdelphi ![]() P.D: Más tiempo dedicado a la pregunta=Mejores respuestas. |
|
#3
|
|||
|
|||
|
Código:
// DevExpress 25.2.4
// TdxProc = procedure;
// { HMODULEs can be used in place of HINSTs } = CARDINAL / NATIVEINT (platform dependent 32/64bits) = 0..4294967295 - 0..18446744073709551615
// HMODULE = System.HMODULE;
procedure TdxUnitsLoader.AddUnit(AInstance: HMODULE; const AUnitName: string; const AInitializeProc, AFinalizeProc: TdxProc);
//
procedure TdxUnitsLoader.RemoveUnit(AInstance: HMODULE; const AUnitName: string; const AFinalizeProc: TdxProc);
//
procedure Hello; // no params
begin
// your code here
end;
xxxx.AddUnit(
Handle {form1.Handle or another HMODULE value like Application.Handle, etc... },
'unit-name-here',
Hello {or NIL if you does not use it - your anonymous proc here},
nil { if doesnt used }
);
procedure TForm2.Button1Click( Sender: TObject );
var
x: TdxUnitsLoader;
C: Cardinal; //0..4294967295;
NI:NativeUInt; //0..4294967295; ... in 64bits = 18446744073709551615
begin
Memo1.Text:= C.MaxValue.ToString + ' - ' + NI.MaxValue.ToString;
//
x := TdxUnitsLoader.Create;
x.AddUnit( handle, 'unitname', nil, nil );
//
x.RemoveUnit(handle, 'unitname', nil);
end;
Última edición por emailx45 fecha: Hace 48 Minutos a las 19:26:40. |
![]() |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Unit Utils | lgarcia | OOP | 2 | 28-01-2025 18:52:40 |
| Librería/Biblioteca de componentes GlibWMI v.3.2 compatible con Delphi 12 | Neftali [Germán.Estévez] | Noticias | 23 | 08-10-2024 10:07:01 |
| ninguna libreria libmysql es compatible | JULIPO | Conexión con bases de datos | 0 | 28-07-2014 06:14:43 |
| delphi compatible con linux | arkangel | Varios | 2 | 17-11-2005 03:27:24 |
| Crear un unit tipo libreria | D@byt | OOP | 7 | 06-05-2005 08:25:36 |
|