Solved

setup DCOM manually

Posted on 2002-05-22
3
435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

617 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