LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ActiveX to Communicate between CVI Projects and Visual C++ Projects

I have downloaded the attached code from your site.But after following the instructions of Readme file(without the second one) the problem is cvi could not find vc.h. Actually I could not follow "Run the executable you just made at least once with the argument "/RegServer" " in the 2 nd instruction.Please help me.
0 Kudos
Message 1 of 3
(3,481 Views)
Hi tupai,

I assume you are referring to this example?
Using ActiveX to Communicate between LabWindows/CVI Projects and Visual C++ Projects

If so, after you build the project, you must go to the command line and change directories to the debug directory where the executable is built. From here, you need to run the executable with the following command:
VC.exe /RegServer

The reason you can't find VC.h is because you haven't built the instrument driver yet (steps 3-7 in the readme). Once you have finished the wizard it will prompt you for the header again. Just point it to the newly created VC.h in the CVI directory (where CVI.prj is, or wherever you told it to save the FP file when creating the instrument).

Regards,
Message 2 of 3
(3,453 Views)
Thank you for your help.Now the code is running smoothly.
0 Kudos
Message 3 of 3
(3,436 Views)