Jump to content
Software FX Community

Re: Problem with Label and KeyLabel properties

User (Legacy)

Recommended Posts

I figured it out.




"Dustin Norman" <dustin@zoftech.com> wrote in message


> How am I supposed to to get the text label of an axis? For example, if I


> the following:


> ICfxAxisPtr cpAxis; // Let's assume that this is pointing to AXIS_X


> cpAxis->Label[0] = "MyLabel"

> CString strLabel = cpAxis->Label[0]; // Crash here...


> I end up with a crash because the Label property isn't correctly returning


> string. It is returning garbage. I have tried using get_Label instead


> passing my own string that I allocated more than enough storage for and it

> still didn't work. If I view the chart, the label certainly is being set

> correctly but I cannot seem to get the value out once I have set it. I

> think that it is also important to note that the HRESULT returned by these

> methods are S_OK. Which would lead me to imply that it was successful.


> same behavior occurs with the KeyLabel property.


> NOTE: Am using the DLL version of ChartFX (


> --

> Dustin Norman

> Lead Software Engineer

> Zoftech Inc. - Get Work Done

> www.zoftech.com

> v: 603-598-7563 x203

> dustin@zoftech.com



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...