User (Legacy) Posted January 24, 2001 Report Share Posted January 24, 2001 I figured it out. Thanks, -- Dustin "Dustin Norman" <dustin@zoftech.com> wrote in message news:wqMUAllhAHA.1712@sfxserver.softwarefx.com... > How am I supposed to to get the text label of an axis? For example, if I do > 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 a > string. It is returning garbage. I have tried using get_Label instead and > 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. The > same behavior occurs with the KeyLabel property. > > NOTE: Am using the DLL version of ChartFX (4.0.20.0). > > -- > Dustin Norman > Lead Software Engineer > Zoftech Inc. - Get Work Done > www.zoftech.com > v: 603-598-7563 x203 > dustin@zoftech.com > > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.