Jump to content
Software FX Community

Re: Annotation object

User (Legacy)

Recommended Posts

To explain my question in the previous post. 

I can't get the method GetExtension to work.


m_pChartFX->AddExtension((IUnknown *)m_pAnnotationList);

// for test purposes

if (m_pChartFX->GetExtension(_T("AnnotationX.AnnList")) == NULL) {


In the above code, GetExtension returns an error CO_E_CLASSSTRING (Invalid

class string).

I also tried "AnnotateX.AnnList" as suggested by the help but it also

returns the same error.

AddExtension works fine because the annotation toolbar appears on the chart.

Why I need to call GetExtension?

I call AddExtension just after creation of the chart control

(CreateInstanceLic). Then, depending on user selection, I may call the

Import() method to load previously saved chart.

If the chart being loaded is 3.0 format, then the extension disappears (no

annotate toolbar) after the call to Import().

Btw, why?

So I need to do AddExtension second time. However, sometimes I get 2

annotate toolbars, so I need to check whether the extension is already


So the question is: how to correctly check that the annotation extension is

already added to the chart?



Link to comment
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.

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.


  • Create New...