Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use DCOM from machine on network

Status
Not open for further replies.

biddingbong

IS-IT--Management
Sep 10, 2004
67
0
0
MU
Ive created a simple dcom and installed in a machine running on Win2000, I want to access the functions in the dcom from another machine.
How to make the reference in VB?
 
OK, before I start, I'm not a Win2000 expert, so some of this may be off the mark - I'm sure I'll be corrected though!

(VERY briefly)...

First you need to configure the remote machine to allow DCOM in the first place - You may had to set it up for individual security.

Then you use DCOMCNFG or Component Services to allow your component object to be called and run remotely (default security settings won't allow it).

Then you fire it up with CreateObject, and just specify the remote machine thus:

Code:
Dim MyObject as Object
Set MyObject = CreateObject("Object.Name", "RemoteMachineName")

The object should now run as a server component on the remote machine.

Hope this helps!
 
Ok, I'm not currently working on the app right now, I'll give a response as soon as possible. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top