LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a dll from a CVI project?

Hi,

Is there a way to create a .dll of a CVI project.
On the similar lines, does anyone know how to develop 'activeX files' from a CVI project, such that the CVI application could be used as an ActiveX control on a different application.

Any suggestions..??

Dwivedi
0 Kudos
Message 1 of 4
(3,024 Views)
Select build\target type\dynamic link library. You need a h file which you want to export. You can select that under build\target settings.

I think you also need dllmain in your main c file. Which you can insert from your c file. Edit\insert construct\dllmain.

Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 4
(3,017 Views)
Hello Dwivedi,

If you just need to call your CVI application, I would suggest creating and calling the executable in another program. If you need to use ActiveX, you can create an ActiveX controller for CVI itself. Navigate to "Create ActiveX Controller" from the Tools menu, then select NI LabWindows/CVI Server . This will add a function tree to your CVI environment, that will allows you to use the exposed ActiveX CVI environment functions.

Hope that helps.
0 Kudos
Message 3 of 4
(3,000 Views)
Thanks Sheetal and Wendy.

regards,

Dwivedi
0 Kudos
Message 4 of 4
(2,997 Views)