Solved

Very similiar web application to ISAPI

Posted on 2003-12-07
11
396 Views
Last Modified: 2013-11-18
I would like to use VB to create a dll that is similiar to ISAPI. This dll should
be able to set/get cookies or session, as well as handle request (form)
from user. How am I going to do this ? Any sample or resource on the web ?
0
Comment
Question by:nicolle
  • 6
  • 5
11 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 125 total points
ID: 9893371
"HOWTO: Obtain ObjectContext with ObjectControl Inside VB COM DLL From ASP and MTS"
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q238/2/74.asp&NoWebContent=1
0
 

Author Comment

by:nicolle
ID: 9893450
AzraSound,

I know how to do ActiveX Dll. What I want is to be able to call the dll in url like

http://127.0.0.1/mydll.asp?name=test
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9893580
Then it must be an ISAPI dll, which I don't believe is a capability of Visual Basic.  Unless, you mistyped your example and you meant:

http://127.0.0.1/mydll.dll?name=test

and not mydll.asp.  You can embed an ActiveX dll to be called from an ASP page and get references to the instrinsic Request, Response, Session, etc. ASP objects within the dll.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:nicolle
ID: 9899674
OK ! I am thinking doing my code in either ASP or Java Servlet. The thing is I don't want to let
anyone see my code. Thus, I want to do the code in dll which is ISAPI.

Do you have any recommendation for me ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9899718
You can do an ActiveX DLL and your code will be compiled and hidden.  Look at the article I originally linked you to.  It talks about how to get the intrinsic ASP objects referenced in your ActiveX DLL, so you can do things like:

Response.Write "some html code"

from within your ActiveX DLL.  If you are so inclined, you can generate the entire page from the dll.  I have seen people do that before.
0
 

Author Comment

by:nicolle
ID: 9899807
Java servlet is stored in memory after first used, so the second visit and so on is loaded from
the memory. How about ActiveXDLL ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9900287
No, you either need to store information in Session variables, or to a database (using a SessionID to identify the user across multiple page requests).
0
 

Author Comment

by:nicolle
ID: 9900595
No, I am not talking about how to store the information. What I mean is after first used the whole java servlet in loaded in the memory, which make it runs faster. Does ActiveX Dll behave the same way ? For example in CGI script, 10 users visit the web site, which mean 10
CGI script are loaded.
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9901266
There is object pooling in COM+ but I dont think VB components can utilize it because of how they are threaded.  To maintain instances across requests would require an out of process component (ActiveX EXE).
0
 

Author Comment

by:nicolle
ID: 9917746
If I put all of my html code in ActiveX DLL, will it slow ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9917916
If its a high traffic site, it may slow a bit, so I would look at including in the dll only the important code you really need to hide.
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

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…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

803 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