Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How does a DCOM component know where to instantiate itself?

Answer Posted / guest

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
<registration> 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
remote server object. In C you can do this with a call to
CoGetClassObject or CoCreateInstanceEx (instead of
CoCreateInstance, which does not allow you to specify the
name of the machine).
In VB you can specify the name in one of the parameters in
the call to CreateObject

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

___,___ arguments will be used to run a executable program in shell function

1800


How would you create your application in DHTML?

1892


Is the Variant type slower than using other variable types?

1552


Whether HTML supports multimedia: and document links?

1871


What is the difference between change event in normal combobox and dbcombobox?

2329


Specify technical & functional architecture of your last 2 projects.

2080


What are some methods you can use to send data from one VB executable to another one?

2247


___ is a property to resize a label control according to your caption.

1573


____ property is used to lock a textbox to enter a datas.

1630


How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?

1543


How do I create a window with a small title bar as in a floating toolbar?

1335


What are 3 main differences between flexgrid control and dbgrid control?

2197


Maximum Control Names length?

2391


Scope of API?s can be of different types, what are they Why API functions are Required?

1939


what is the control used to call a windows application.

1991