CSDN博客

img wonew

在VB中如何访问到远端服务器,只看到vb.net、C#和C++的例子,VB如何调用呢?

发表于2004/9/15 12:00:00  617人阅读

分类: Windows Media SDK

在VB中如何访问到远端服务器,只看到vb.net、C#和C++的例子,VB如何调用呢?

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Dim tServerType As Type
Dim 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")

??? ' Create an instance of the remote server object locally.
??? RemoteServer = Activator.CreateInstance(tServerType)

Catch errCom As COMException
??? ' TODO: Handle COM exceptions.
Catch err As Exception
??? ' TODO: Exception handler goes here.
Finally
??? ' TODO: Clean-up code goes here.
End Try

0 0

相关博文

我的热门文章

img
取 消
img