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


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

  • Create New...