Solved

Very similiar web application to ISAPI

Posted on 2003-12-07
11
393 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
Comment Utility
"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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:nicolle
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:nicolle
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
If I put all of my html code in ActiveX DLL, will it slow ?
0
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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.
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 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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now