I have problem with not members of a class functions. I want to use that functions in a new component unit but they did not work in a component unit!
these two functions must assign to another function in a dll as parameter.
When I used this 2 functions(not members of class) in main form they can work but in the new component unit, the dll function cannot call back these two functions any more! How can I resolve this problem ? Is this delphi bug ? because I am using Delphi XE Update 2 this is lastest version of delphi maybe it is a bug!
TComp12 = class(TCustomPanel)
private
....
protected
....
public
....
end;
function function1(opaque: Pointer; plane: Pointer): Pointer; cdecl;
function function2(opaque: Pointer; picture: Pointer; plane: Pointer) : Pointer; cdecl;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Comp1', [TComp12]);
end;
function function1(opaque: Pointer; plane: Pointer): Pointer; cdecl;
begin
......
end;
function function2(opaque: Pointer; picture: Pointer; plane: Pointer) : Pointer; cdecl;
begin
......
end;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…