LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

COM programming

Once created an ActiveX server , if it must to construct an ActiveX client to access the server ? I hope that I could communicate with the activeX server just like use DLL . If it could be realized easily ?

David
0 Kudos
Message 1 of 7
(3,789 Views)
David,

To communicate to any ActiveX server you can use the CVI wizard that creates a set of functions to call the ActiveX server. Using the CVI wizard from "Tools>>Create ActiveX controller..." you will end up with a library in your project to call the ActiveX object much like a DLL.

Give a try to the wizard and take a look at the functions generated. It takes some getting used to but at the end CVI makes things fairly easy.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 7
(3,789 Views)
But Do I need to construct an special ActiveX client application to communicate with the server? if it is not , how to call the activeX server in a CVI application ? Thanks.

David
0 Kudos
Message 3 of 7
(3,789 Views)
When you create the ActiveX controller from the CVI wizard, it actually creates an .fp file that you can then use ther same as the other cvi function panels. It is actually very straightforward to use. Youwon'tneed toconstruct anything special to make use of these wrapped functions...

Regards
John
0 Kudos
Message 4 of 7
(3,789 Views)
Thank you John . And more , how to construct a DCOM server with CVI ? Can use an activeX controller to communicate with the DCOM server ? Your advise is highly appreciated ?


David
0 Kudos
Message 5 of 7
(3,789 Views)
As I understand it, DCOM is an extension of COM... Whereas COM allows components to communicate on the same machine, DCOM uses the RPC mechanism for performing the communication across networks. I've not tried the communications across the network, but all the activeX controllers I've created / used have had server parameters in their open functions suggesting that they would work on a distributed platform...

John
0 Kudos
Message 6 of 7
(3,789 Views)
Thanks John . I understand .


Best Regards

David
0 Kudos
Message 7 of 7
(3,789 Views)