Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

cw3dgraph

Hi
I have an application built from visual C++ and Measurement studio version 1.0.1. My application controls instruments over the GPIB, saves data from GPIB and displays that data (there are 2 windows that display the data) so my application uses VISA (and GPIB), cw3dgraph control.

I have 2 windows that use cw3dgraph. I want to be able to use my application to view the data saved on the other computer that doesn't connect to the instrument or doesn't have any VC++ or measurement studio. I built the exe as a release version. However, it works with some computer only. There are 4 computers that I tried

computer #1 : WinXP, doesn't have VC++ or Measurement studio, but has LabVIEW. My exe can be opened fine.

computer #2 : WinXP, doesn't have VC++, Measurement studio, or LabVIEW. The 1st window of my exe that has cw3dgraph can be opened fine, but when I open the 2nd window that also has the same cw3dgraph pops up an error said "cw3dgraph, error loading control. A newer version needed. The default settings for the control will be used". And then I can see a graph that has the word "evaluation copy" on the back of it.

computer #3 : WinXP, doesn't have VC++, Measurement studio, or LabVIEW. Nothing open up when I open my exe.

computer #4 : WinXP, has VC++, Measurement Studio, LabVIEW. Everything is fine, 2 windows can be opened up.

What should I do to make my application able to view the data saved on the other computer that doesn't connect to the instrument or doesn't have any VC++ or any of the National Instrument's software (eg. Labview, Measurement studio,...)? It doesn't matter if my application cannot communicate with the GPIB, I just want to be able to view the data (on the cw3dgraph).

Thank you
0 Kudos
Message 1 of 5
(5,989 Views)
Make sure that you are deploying the same version or newer of the 3d graph across all the machines that you are planning to use your application with. The machines with LV or MStudio probably already have the control. You can check the version of the 3dGraph control on the various machines by going into the C:\WINDOWS\system32 folder, right clicking and checking the properties of the cw3dgrph.ocx.

Check the system32 folder of PC#2 to verify whether you had installed an older version of the control on that machine.

The cw3dgrph.ocx needs to be present and registered on the system where you intend to use your application. It must be the same version or newer. Otherwise, you will get the "newer version is needed" error. You can only have one version of an ActiveX control registered on a machine.

I hope this helps.
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(5,980 Views)
from reading your message, I am trying to see what the steps in deploying my application are, can u verify if I got the steps right?

at the computer that I develop my application
1. compile VC++ as a release version
2. go to c:\windows\system32\, and copy the cw3dgrph.ocx

at the target computer that I want to deploy my application to
3. copy the file from step 1 to this computer
4. copy the cw3dgraph.ocx to the c:\windows\system32\

Thank you
0 Kudos
Message 3 of 5
(5,974 Views)
Make sure you register the ocx on your deployment machine after it is copied over. You can do this by using regsv32

On the command line

"regsvr32 cw3dgraph.ocx" (without the quotes)
Bilal Durrani
NI
Message 4 of 5
(5,961 Views)
That works on computer #2. I'll try the other computers. Thanks!
0 Kudos
Message 5 of 5
(5,951 Views)