キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/7
3,901件の閲覧回数
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 件の賞賛
メッセージ2/7
3,901件の閲覧回数
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 件の賞賛
メッセージ3/7
3,901件の閲覧回数
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 件の賞賛
メッセージ4/7
3,901件の閲覧回数
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 件の賞賛
メッセージ5/7
3,901件の閲覧回数
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 件の賞賛
メッセージ6/7
3,901件の閲覧回数
Thanks John . I understand .


Best Regards

David
0 件の賞賛
メッセージ7/7
3,901件の閲覧回数