Jump to content
Software FX Community

#import and ChartFx


User (Legacy)

Recommended Posts

Hi,

I'm using the #import statement in VC7.1 on the ChartFX ocx (5.0.14) and

it is generatint both the tlh and tli files ok.

However, it seems to be importing the ChartfxLib members and not the

ChartfxLibCtl members. I need these extra members (ie name, left, top,

etc) as this is how our C++ app interacts with our other VB control.

Is there any way to get the ChartfxLibCtl imported instead of the other one?

Thanks,

Steve.

Link to comment
Share on other sites

No. The #import has no concept of ActiveX interfaces.

If you are using ATL or MFC, what you need to do is put the chart into an

ActiveX container which will give you the properties you are looking for.

Check out the MFC samples provided with the product (Samples\MFC Folder) for

more details on how to obtain a CWnd that contains the Chart Object.

--

FP

Software FX

Link to comment
Share on other sites

SoftwareFX Support wrote:

> No. The #import has no concept of ActiveX interfaces.

>

> If you are using ATL or MFC, what you need to do is put the chart into an

> ActiveX container which will give you the properties you are looking for.

>

> Check out the MFC samples provided with the product (Samples\MFC Folder) for

> more details on how to obtain a CWnd that contains the Chart Object.

>

Ahh, thanks. What we are actuallly doing is putting a chartfx control

into an ActiveReport VB control. Then, in our C++ app we are getting

the chartfx control and setting some properties via our C++ code.

The reason I'm confused is the same method of #import works with our

ActiveReport ocx (ie we get the name, left, top, etc memebers). However

it doesn't work with chartfx...

Thanks,

Steve.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...