LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 5.5 and activeX controls

Hello,
Are there any workarounds for using ActiveX controls in CVI 5.5? I
have a customer who can't upgrade to 6.0 but needs to use a custom
control in an .ocx file. I am aware that this isn't supported, but on
the surface it seems that there might be a way to use the control
through the Windows API.

Neil
0 Kudos
Message 1 of 4
(2,965 Views)
No, there is no workaround unfortunately. The only thing you could do is build a DLL that uses the control in VC++ or another compiler and call that DLL from CVI, but you would have to have another compiler and the control could not ever be on a CVI panel.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(2,965 Views)
Chris Matthews wrote in message news:<506500000005000000101E0100-1042324653000@exchange.ni.com>...
> No, there is no workaround unfortunately. The only thing you could do
> is build a DLL that uses the control in VC++ or another compiler and
> call that DLL from CVI, but you would have to have another compiler
> and the control could not ever be on a CVI panel.
>
> Best Regards,
>
> Chris Matthews
> National Instruments



Hi Chris,
Thanks for your reply. Does NI have any examples of wrapping the
ActiveX control in a standard dll? I didn't see one on the website.

Neil
0 Kudos
Message 3 of 4
(2,965 Views)
Unfortunately, we don't have an example since you would write the DLL in another compiler like Visual C++ or Visual Basic. You would just want to create a Visual C++ MFC Dll or a Visual Basic DLL and drop the control on a dialog and program it. You could then set up DLL function calls to operate the control from CVI.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 4 of 4
(2,965 Views)