How to access the remote server in VB, just see the example of VB.NET, C # and C ++, how to call VB?

xiaoxiao2021-03-06  55

How to access the remote server in VB, just see the example of VB.NET, C # and C , how to call VB?

Imports Microsoft.WindowsMediaaservices.interopimports System.Runtime.InterOpServices

DIM TSERVERTYPE As Typedim RemoteServer AS WMSSERVER

Try

??? 'Retrieve The Type Information from The Windows ???' Media Server Running on The Remote Machine.

??? TSERVERTYPE = Type.gettypeFromProgid ("WMSSERVER.SERVER", "Server_name")

??? 'crete an instance of the remote server object locally. ??? RemoteServer = Activator.createInstance (TSERVERTYPE)

Catch errcom as comXception ??? 'Todo: Handle COM Exceptions.catch Err as Exception ???' Todo: Exception Handler Goes Here.FinalLinally ??? 'Todo: Clean-Up Code Goes Here.end Try

转载请注明原文地址:https://www.9cbs.com/read-116803.html

New Post(0)