Jump to content
Software FX Community

Re: Delphi5 and GetExternalData ...


Software FX

Recommended Posts

Passing pointer to COM Objects in Delphi is quite awkward. Here is the code 

that will do what you need:

var

rFileName : TCfxDataFile;

begin

try

rFileName := TCfxDataFile.Create(self);

rFileName.FileName := 'd:\temp\data.txt';

ChartFx1.GetExternalData(rFileName.DefaultInterface);

finally

ChartFX1.Refresh;

end;

end;

Notice the Explicit call to DefaultInterface as Delphi will not know how to

directly convert a TCfxDataFile to an OLEVariant.

--

Frank

SFX

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...