Solved

Simple Distributed Question

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

778 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