Link to home
Start Free TrialLog in
Avatar of goodwork
goodwork

asked on

Problem With ChartFX in Delphi 4.0

Hi,

I am using delphi 4.0 when i am trying to access the form
which got chartfx component it is giving problem.

the error is 'EOLESysError' Colnitialize has not been called.

when i am trying to do like this

var
 x : tdlgchart;
begin
   x := tdlgchart.create(self);
   .
   .
   .
end;

it is giving the above error in the 'crate' line.

Thanks in advance.
Avatar of rwilson032697
rwilson032697

Sounds like you are using MDI forms?

Anyway, add this to your form unit:

Initialize
  CoInitialize(Nil);

Cheers,

Raymond.
Oops, I mean this:

Initialization
  CoInitialize(Nil);

Cheers,

Raymond.
Avatar of goodwork

ASKER

Thanks,

initialization
CoInitialize(Nil);

But i am getting an undefined identifer 'CoInitialize';

Did i need to add any unit in my chart unit.

i am using delphi 4.0, i checked with the help file it is
not showing any keywords like 'coinitialize'
Thanks in advance..


try adding activeX to the uses section.
It is working now.

how can i pass the point value of this question to you.
NO DONT GIVE ME THE POINTS AS RAYMOND ANSWERED THE QUESTION AND HE WOULD HAVE ALSO SAID ADD ACTIVEX TO USES SO HE SHOULD HAVE THE POINTS.
WHEN HE READS THIS NEXT HE WILL PUT AS ANSWER SO YOU CAN THEN GIVE HIM THE POINTS.

sorry capslock button was down ;-)
Regards Barry
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RBertora
Yes, well said Barry :-)