Solved

setup DCOM manually

Posted on 2002-05-22
3
399 Views
Last Modified: 2007-12-19
I would like to know if it is possible to manually register a VB DLL on a server machine using regsvr32 and a client exe on another machine using regcli32 (using DCOM) and if so could someone please provide a step by step guide to doing so? (no links to msdn pages please)
0
Comment
Question by:JustinB
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
gkollar earned 50 total points
ID: 7026823
hello

I understand what you want, but on first time if you want to use dcom architecture, you must use exe active x on your server side. If you want to use dll active x on server side you must implement this on a mts or com+ server.

so, with a exe active x (server side) on compilation phase, you must select the option on compilation tab (project Properties dialog on the compoment tab): remote server files. This make a .vbr and .tlb files who are used with the clireg32.exe utility.

the .vbr file provides the information on how to set up the server remotly using clireg32.exe, without to have the activex exe on each client.

to install the active x on the server, put the .exe file and all dependency (you can use the package wizard), and use the switch /regserver on the .exe file, to register the activex exe on the server.

on the client side. Register the .vbr file with: clireg32 file.vbr -s <srv_dev> -t file.tlb -d
<srv_dev> is the netbios name of the dcom server or the @IP.
so open a new exe projet vb, you can add the reference of the server compoment, and call the method or property of this one.

you can use dcomcnfg or oleview to verified the installation...

i hope that the response is clear for you.

best regard from france


0
 
LVL 1

Author Comment

by:JustinB
ID: 7027046
That sounds like what I want but I am a bit confused by the
"use the switch /regserver on the .exe file, to register the activex exe on the server" bit.

Exactly what program do you use that switch on?
0
 
LVL 1

Author Comment

by:JustinB
ID: 7028892
I have tried it out and believe I registered the server correctly etc but could still not get it working thanks for your help anyway.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now