Home > Software engineering >  Teechart is used in the MFC, VS2013 calls the function with markedly different VC call a function, f
Teechart is used in the MFC, VS2013 calls the function with markedly different VC call a function, f

Time:10-08

In vc + +, can be set by instruction Teechart controls the axes of maximum, minimum, logarithmic coordinates, etc., such as
M_ctrlChart. GetAxis (.) GetLeft (.) SetMinMax (0, 100);
I now is to use VS2013, the above statement function doesn't exist, should how to call? Please help, thank you!!!!!

CodePudding user response:

M_ctrlChart declared in a class, you want to check and see how it is to provide methods,

If using a COM/ACTIVEX components, VS the IDL compiler interface to generate corresponding wrapper class, and different environment generated wrapper class is different, such as ATL project and MFC generated wrapper class is completely different,
A line of continuous call, like you usually generate the encapsulation of encapsulation methods are returned directly reference class instance itself, so to call in a row, but the error handling way became an exception is thrown, this type of call requires in TRY/CATCH block, some can't calls in a row, then must be positioned to a class in the definition of the look at how the member function definition,

CodePudding user response:

reference 1st floor redui response:
m_ctrlChart declared in a class, you want to check and see how it is to provide methods,

If using a COM/ACTIVEX components, VS the IDL compiler interface to generate corresponding wrapper class, and different environment generated wrapper class is different, such as ATL project and MFC generated wrapper class is completely different,
A line of continuous call, like you usually generate the encapsulation of encapsulation methods are returned directly reference class instance itself, so to call in a row, but the error handling way became an exception is thrown, this type of call requires in TRY/CATCH block, some can't calls in a row, then must be positioned to a class in the definition of the look at how the member function definition,


Predecessors, I am now in VS MFC programming environment, need to use Teechart, Teechart version of what I choose?

CodePudding user response:

First you can see on the control is to modify directly, or look at his source file
The second you change a control http://blog.csdn.net/u011001084/article/details/50853784

CodePudding user response:

CAxes axes=m_ctrlChart. Get_Axis ();
CAxisChart axisLeft=axes. Get_Left ();
AxisLeft. SetMinMax (0, 100);
  • Related