Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to submit web form directly to ActiveX .dll ? 1

Status
Not open for further replies.

EugenePaliev

Programmer
Jul 18, 2001
537
UA
Hello all!

I want to write an ActiveX component (.dll) and set it as an action in web form -> when the from is submitted all entered data will be sent directly to .dll...

I will VERY appreciate any code samples, advices or links to tutorials and others!!!

And a star for every response! :) Good Luck! :)
 
What you are trying to do cannot be done directly.
There has to be some interfacing mechanism between the serverside com and the page.
This mechanism is either an asp page or alternatively which would probably be a better solution an ISAPI.
The ISAPI can be written in C++, this will instantiate the com "Dll" and process the results.
If you are uncomfortable with C++ the asp page is the only remaining solution.
set x = server.createobject("dllname.classname")
x.methodinthecom
if not x is nothing then set x = nothing



 
Make sure you right clean code for that ActiveX DLL 'cause it will use the processing space of the WebServer. If it breaks it could kill the web server (or so I've been told, I've only used out-of-process com server EXE's)
JHall
 
Thank you for responses!

The problem is I want to avoid using ASP page on this step, because if I use it it goes WEB FORM > ASP PAGE > COM > ASP PAGE. I want it work this way FORM > COM > ASP.

I believe in everything you say to me (especially because my VB programming experience is short), but I've seen that it works on some sites. Like:
<form name=&quot;form1&quot; action=&quot;some.dll&quot;>
...
</form>

But any way thanks a lot!!! Good Luck! :)
 
When you see the some.dll type posts this is a C?? dll which can read from the std in. I used to write all of our sites in C and you can read the post directly into the program via the stdin and you write the output to the browser directly to the stdout. If you are comfortable with C or C++ you will find that it is very easy.



Eric Repec
eric@ericrepec.com
If its not broke try it make it faster.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top