Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

using CWGraph control w/MSVC

I want to use the CWGraph control in my MSVC 6.0 project. I'm not using MFC and I'm coding in C, not C++. I'm getting link errors (unable to resolve external symbols _CWUIControlsLib__DCWGraphPlotY@72, _CA_DefaultValueVariant@0, _CA_VariantSet1DArray@16)
What library/dll should I link against? I've examined the CVI and MSVC examples, but still cannot find what needs to be included in my project to get a successful build.

Thanks!
0 Kudos
Message 1 of 2
(2,893 Views)
Hello

Are you using the CVI import wizard to bring the project into MSVC? The wizard should automatically link up the right files for you automcatially. The libraries to use with MSVC are located in the CVI subfolder and is called extlib\msvc.
CVI has its own graph control, which is alot simpler to use than the activex graph.
What prolly is happening is that since you used the activex controller wizard to generate the wrappers, you might need to move those generate files over and well into the same folder as your project and add references to the files.

For the other CVI functions, here is a list of the libs needed for the various CVI functions

gpib.lib/* GPIB/GPIB 488.2 Library*/
dataacq.lib/* Traditional NI-DAQ Library*/
visa.lib/* VISA Library*/

nivxi.lib/* VXI Library*/
ivi.lib/* IVI Library*/
nidaqmx.lib/* NI-DAQmx Library*/
cviauto.lib/* ActiveX Library*/

These are all in the extlib folder. I got the above list from the CIV programmers reference manual.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,892 Views)