Solved

Simple Distributed Question

Posted on 1998-12-30
3
122 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

IT, Stop Being Called Into Every Meeting

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…
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…

707 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

20 Experts available now in Live!

Get 1:1 Help Now