Software FX Posted May 12, 2000 Report Share Posted May 12, 2000 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.