LabWindows/CVI User Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I Use DLLs Created in LabWindows/CVI with Visual C++?

I want to create a DLL in LabWindows/CVI and then use it with Visual C++.There is no any problem if CVI and VC++ are on the same computer.But my VC++ is on another computer witch has never installed CVI before.There is no problem with compile and link when I use the DLL created in CVI with VC++,but error occurred as shown is figure 1 when running.I think it is because there is no CVI Run-Time Engine.

Q:What should I do then? Whether the CVI Run-Time Engine could be loaded into the DLL, which is more convenient to use with the DLL? (except installing CVI Run-Time Engine manually)

图像 2.png

                                             Figure 1 Error Information

target setting.png

                                         Figure 2 My "Target Settings"Dialog

0 Kudos
Message 1 of 3
(4,918 Views)

Hi chzt,

The LabWindows/CVI runtime is a dependency of your LabWindows/CVI-built DLL. It must be present on the  system where you are using your DLL. Please see http://zone.ni.com/reference/en-XX/help/370051AC-01/cvi/programmerref/cvirtengine/ for more information about the runtime.

Daniel Dorroh
National Instruments
Message 2 of 3
(4,469 Views)

Thanks.

0 Kudos
Message 3 of 3
(4,469 Views)