Hello
The help that you are seeing is related to CW 3.0 for Visual Basic, so it is relating how you would use the functions in Visual Basic. To find detailed help on using the graph object in VC, you should use the CW Components for C++, which provide custom made classes with make it easier to use all the NI ActiveX controls. You can use the Class wrappers generated by VC, but as you see already, they can be a little tough to use sometimes. So if you have the CW 3.0 Tools for C++, I would recommend using those rather than depending on the wrappers created by the VC class wizard.
To answer your question about using the wrapper classes to change the tick count, here is what worked for me
COleVariant myvar( (double)1);
m_graph.GetAxes().Item(_variant_
t((char *)"XAxis")).GetTicks().SetMajorDivisions(myvar);
This is how you would set the number of major divisions on the graph object. The process is the same for changing any other property of the graph.
So with CW Tools for Visual Basic, the help will only describe how to use the functions in Visual Basic, since the CW Tools for C++ provides its own functions, it does provide you with help for using these functions in VC. We do not have any help files for the wrappers that VC generates for the ActiveX controls
I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI