I have a problem about Delphi source code.
Please help me explain it.
Detail problem as below:
I have two Delphi applications. They are two .dll files (it call App1 and App2).
App1 has a method as below:
procedure SetImage( objControl : Object; img: Pointer);
begin
objControl.Picture.Bitmap := img;
end;
In App2, I call above method of App1 as below to display image on report.
SetImage( objPreImgs, tempJPEG );
With objPreImgs is correct object and temJPEG is TJPEGImage object.
If I compile App1 and App2 with Delphi 7, there is not any problem.
If I compile App1 with Delphi 7 and App2 with Delphi 6, there is one problem (cannot display image on report).
I have not known root cause of above problem yet.
If you know, please explain for me.
p/s: App1 cannot compile with Delphi 6.