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

x
?
Solved

Simple Distributed Question

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

688 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