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.
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.
Oops, I mean this:
Initialization
CoInitialize(Nil);
Cheers,
Raymond.
Initialization
CoInitialize(Nil);
Cheers,
Raymond.
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..
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.
ASKER
It is working now.
how can i pass the point value of this question to you.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, well said Barry :-)
Anyway, add this to your form unit:
Initialize
CoInitialize(Nil);
Cheers,
Raymond.