Solved

setup DCOM manually

Posted on 2002-05-22
3
389 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Extract Data and filename Macro 20 99
Vb.net 2008 2 49
VB error "Type mismatch" 2 43
VBA error replacing data 6 35
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

758 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

21 Experts available now in Live!

Get 1:1 Help Now