Solved

Very similiar web application to ISAPI

Posted on 2003-12-07
11
398 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

713 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