Solved

Simple Distributed Question

Posted on 1998-12-30
3
123 Views
Last Modified: 2010-08-05
OK I have some idea about the principals behind a distributed setup, but what I don't know is how I can write a statement similar to the following
Dim oObj as new cMyActiveXDLL
when the DLL is located on the server.  What do I have to do to make the statement above work correctly when it is located only on the server and not on the client's machine.
0
Comment
Question by:Jagar
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
mdougan earned 50 total points
ID: 1453192
Let's assume that you wrote the server component in VB.  When you created the install for that server, it created a file with an extension that I don't quite remember at the moment, let's just call it a .tlb file.  

You write your application as you would with a local component, but when you go to create the installation, the install wizard will ask you if your project uses any remote ole servers.  When you say yes, it will ask you for the location of that .tlb file.  That file contains info on where the server is going to be running, what user id can access it etc.  If you leave any of that info blank when creating the install for the server, then the install for the client will ask for it when the client is installed.

You can write and debug your program using the server locally, and you only need to go through this rigamarole when you're ready to test the remote stuff.

MD
0
 
LVL 2

Author Comment

by:Jagar
ID: 1453193
Thank You for your help I knew it had to be something simple.  I'm accepting your answer.  I'm not going to try it because I'm really not ready to try it, but I was wondering for a future project and what you say make sense.
0
 
LVL 18

Expert Comment

by:mdougan
ID: 1453194
Thanks, I wish I could say that it was smooth sailing from here on out, but there is more headache ahead with permissions, assuming that your server component will be running on an NT Server.  You'll need to use the Remote Ole Manager to set permissions on who can activate the server, or another program that does this too is called dcomcnfg.  

If you are looking for examples, there are projects under the VB samples\clientsvr directory somewhere.

MD
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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…

863 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

16 Experts available now in Live!

Get 1:1 Help Now