09-10-2008 07:44 AM
Hi,
I've created an ActiveX server in LabWindows CVI 7.1 and manage to access and control it as a stand alone application from a controller created in CVI 7.1.
But when I try to create a LabView controller for it, the active x server does not appear in the list of active x servers that LV displays. Apparently the server is registered since I it appears in the list of servers that CVI displays. I guess that there might be some setting in the 'Edit Active X server' application that must be set in on or the other way in order for LV to be able to see it? But I just do not manage to find out what it can be.
Further, in CVI I launch the server as a standalone application, but in LV I would like to embed it as a control in the LabView controller panel. Is that possible without turning it into a dll and thereby loosing global info?
Your help is appreciated!
best regards
Kurt Jakobsen
09-11-2008 09:43 AM
In CVI, you cannot create ActiveX controls. So you cannot embed the CVI created ActiveX server in the LV front panel as a control. If you want to do this, you need to create an ActiveX control using Visual Basic, MFC, ATL, or some other framework.
I am not sure why your CVI server application is not visible in LV. Depending on the version of LV, this may be because of your interface types. Try to make all your interfaces 'Dispinterfaces' instead of the default 'Dual Interface' (using the Interface Type ring control in the Edit ActiveX Interface dialog) and see if this makes the server visible in LV.