Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

setup DCOM manually

Posted on 2002-05-22
3
Medium Priority
?
441 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 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

705 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