AllExperts > Experts 
Search      

Active X Programming

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active X Programming Answers
Question Library

Ask a question about Active X Programming
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Adrian Herscu
Expertise
All about ActiveX and COM.

Experience
I am COM-programming about two years.

 
   

You are here:  Experts > Computing/Technology > Basic > Active X Programming > how to register dll

Topic: Active X Programming



Expert: Adrian Herscu
Date: 5/6/2001
Subject: how to register dll

Question
I have 2 computer
PC1 | web server and asp page
PC2 | dll file that do anything with database and database
I use windows 98 and VB.I want to create asp page that call dll file from PC2. what I have to add on my asp page.And what I have to do to call dll from another computer in my asp.

P.S. do you have any web document about this.

Answer
First of all, you cannot just call a .DLL from a ASP page.
What you can call from a ASP page is an automation object housed in an in-process server. An in-process server is one implemented as a .DLL.
So, what we have here? We have IIS with ASP engine which are one process. And we have another object, located in a .DLL, registered on other computer. Because this object is an in-process server it have to be located on the client computer. In order to activate it on the remote computer this object must be implemented as an out-of-process server (in a .EXE file) or it must be loaded by some process on the remote computer (this is called a surrogate in-process server), and that object be registered in the client computer's registry as a remote server.
Technically speaking, the above is feasible. But, why not to register the in-process server on the IIS computer, and then that object will make remote calls to the database computer?

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.