Posted on 2002-07-17
Hi, I am trying to learn DCOM using VB
I made very simple ActiveX EXE
below is my stupid server.
Public Sub Display(Message As String)
This is the only function that DCOM server has
below is my client code.
Private Sub Command1_Click()
Dim a As DCom_Server.Class1
Set a = CreateObject("DCom_Server.Class1", "grand-blue")
It works on the local machine, which named "grand-blue", but it does not work on a remote machine.
I get an error saying "Run Time Error 464, Class not registered on local machine"
I added the reference of that class to my remote client machine from Project/References menu by browsing to "grand-blue" machine where the exe file exist.
I am using the BOOK called VB COM bu Thomas Lewis. The book shows very simple client example like above and it does not explain how to use DCOM object from remot machine.
How do I make an instance of a class in a remote activex exe DCOM server using VB??