Search found 5 matches

by jonnyg
Tue May 13, 2008 3:43 pm
Forum: ActiveX
Topic: GetAsLine() -> Invalid Type Cast
Replies: 7
Views: 10190

The following code also works fine on my computer and my friend's: println("hello world"); I don't think that FillSampleValues(5) will do me much good. Are you saying that the code I'm using to populate the graph data is incorrect? If so, please let me know. Did you try running the code that I sent?...
by jonnyg
Fri May 02, 2008 2:51 pm
Forum: ActiveX
Topic: GetAsLine() -> Invalid Type Cast
Replies: 7
Views: 10190

I do not have the VC++ v6 IDE. I only have a license for VS 2005 Pro Edition. When I create an MFC dialog-based project and add a TeeChart control, no wrapper classes are created. However once I add a control variable (I named it m_chart) for the TChart control, the wizard creates one new class name...
by jonnyg
Mon Apr 28, 2008 6:27 am
Forum: ActiveX
Topic: GetAsLine() -> Invalid Type Cast
Replies: 7
Views: 10190

Hi,

I've uploaded InvalidTypeCast.zip for your perusal.

Thanks for your help.

John G
by jonnyg
Wed Apr 23, 2008 5:04 pm
Forum: ActiveX
Topic: GetAsLine() -> Invalid Type Cast
Replies: 7
Views: 10190

GetAsLine() -> Invalid Type Cast

I'm calling: m_chart.Series(i).Add(series_val, x_axis_label, color); m_chart.Series(i).GetAsLine(); and getting "Invalid class typecast" during runtime when the GetAsLine() method is called. I'm using the TeeChart Pro Activex Control v8 From Release.txt: January 2008 TeeChart Pro Activex Control v8 ...
by jonnyg
Tue Apr 15, 2008 1:03 am
Forum: ActiveX
Topic: how to autowrap header text?
Replies: 3
Views: 6144

how to autowrap header text?

I do the following in my VC++ code: long canvas_width = m_chart.GetCanvas().GetWidth(); long text_width = m_chart.GetCanvas().TextWidth(very_long_text_string); m_chart.GetHeader().GetText().Add(COleVariant(very_long_text_string)); When I set the header text with the string above, the text goes off t...