Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does a DCOM component know where to instantiate itself?

component DCOM instantiate
0
Posted

How does a DCOM component know where to instantiate itself?

0

To create a remote instance of a script component, call the CreateObject method, passing it the name of the remote computer as a parameter. If the remotable attribute of a script component’s element has been set to “true,” the script component can be instantiated remotely from another computer using Distributed COM (DCOM). Both computers must have basic DCOM installed. Note The ability to use CreateObject for instantiating remote script components requires Visual Basic 6.0 or later or VBScript 5.0 or later. The following Visual Basic example shows how to do this on a computer named “myserver”: Set newS = CreateObject(“Component.MyComponent”, “myserver”) Note There can be a slight delay when you first instantiate a remote script component while DCOM establishes communication between the computers. 1. You can specify the machine on which you want to create the remote server object in DCOM config (‘dcomcnfg’). 2. You can specify the machine name when instantiating the remot

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123