Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Using CreateObject to instanciate an object on a remote computer


Message #1 by "Brett Arthur" <brett@d...> on Thu, 19 Apr 2001 13:11:34
You are attempting to use com in what is now a dcom arena. As soon as you
move accross machines you must invoke marshalling.

-----Original Message-----
From: Brett Arthur [mailto:brett@d...]
Sent: Thursday, April 19, 2001 1:12 PM
To: professional vb
Subject: [pro_vb] Using CreateObject to instanciate an object on a
remote computer


Hi All,

I am trying to instanciate an object on a remote computer. I am able to
use create object on the remote server directly, but when I try the same
call across the network I get the 'ActiveX can't create object' error.
Anything in particular that I should look out for.

COM Object to be created:

Public Property Get ReturnValue() As String
  ReturnValue = "Pass"
End Property

Call to create object:

Dim obj As Object
Set obj = CreateObject("TestCOM.Interface", "Autechre")
Debug.Print obj.returnvalue

Thanks,
Brett


  Return to Index