Create rtd Client ...........
Code:
'Option Explicit Off
Option Strict Off
Imports System.Reflection
Imports System.Threading
Class Test
Private Const RTDProgID As String = "MyRTD.RTD"
Private Const RTDUpdateEventProgID As String = "MyRTD.UpdateEvent"
Private Const RTDEXEProgID As String = "MyRTDEXE.RTD"
Private Const RTDEXEUpdateEventProgID As String = "MyRTDEXE.UpdateEvent"
Private Const topicID As Integer = 12345
Private Const topic As String = "topic"
Sub Main()
Dim test As New Test()
Console.WriteLine("Test in-process (DLL) RTD server. (.Net style)")
test.RtdDotNetStyle(RTDProgID, RTDUpdateEventProgID)
Console.WriteLine("Test out-of-process (EXE) RTD server. (.Net style)")
test.RtdDotNetStyle(RTDEXEProgID, RTDEXEUpdateEventProgID)
Console.WriteLine("Test in-process (DLL) RTD server. (Visual Basic style)")
test.RtdDotNetStyle(RTDProgID, RTDUpdateEventProgID)
Console.WriteLine("Test out-of-process (EXE) RTD server. (Visual Basic style)")
test.RtdDotNetStyle(RTDEXEProgID, RTDEXEUpdateEventProgID)
Console.WriteLine("Press enter to exit ...")
Console.ReadLine()
End Sub