Jump to content
Software FX Community

#import and ChartFx


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...