Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

setup DCOM manually

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
JustinB
Asked:
JustinB
  • 2
1 Solution
 
gkollarCommented:
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
 
JustinBAuthor Commented:
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
 
JustinBAuthor Commented:
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now