Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Simple Distributed Question

Posted on 1998-12-30
3
Medium Priority
?
130 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
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 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…
Suggested Courses

963 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