I have two units, the first one is my interface:
use personas
interface
type
Tllave = array[0..31] of byte;
Tdatos = array of byte;
ImyInterface = interface(IInterface)
function nombre : string;
function edad : integer;
procedure resetear;
function Proceso(datos : tdatos; cantidad : integer) : integer ;
procedure Iniciar(llave : Tllave);
end;
second unit, my object declaration:
use militares
interface
uses personas;
type
Tmilitares = Class(TInterfacedObject, ImyInterface )
public
function nombre : string;
function edad : integer;
procedure resetear;
function Proceso(datos : Tdatos; cantidad : integer) : integer ;
procedure Iniciar(llave : Tllave);
published
constructor create;
end;
implementation
function tmilitares.Proceso(datos : tdatos; cantidad : integer) : integer ; // getting error !!
begin
// ....
end;
procedure tmilitares.Iniciar(llave : Tllave); // getting error!!
begin
// ....
end;
I get an error only in the "proceso" and "iniciar" functions:
The 'Iniciar' ad is different from the previous ad.
The "Proceso" ad is different from the previous ad.
I noticed that they have an array parameter. The type of the parameter is determined in the first block, if I define these types in the second units, I get the same error, but this manifests itself in the declaration of the object. how can i compile?
erick