Passing Values into an ActiveX DLL from ASP ?? 
Author Message
 Passing Values into an ActiveX DLL from ASP ??

Hi All:

I am trying to use an ActiveX DLL with ASP.  This DLL has a procedure which
expects a parameter which needs to be sent from the ASP code.

This parameter is got from a VBScript procedure.

This is what I am trying:

Private Sub ReadCabinets(myVar)
msgbox myVar
<%
   lngNumOfCabs = objWeb.GetCount(myVar)
%>
End Sub

The variable myVar always goes into the GetCount procedure of the DLL with a
value of 0.  The message box just before the ASP tags confirms that the
correct value is being retrieved by the procedure.


the *nospam*.

TIA

Rahul



Sun, 24 Feb 2002 03:00:00 GMT  
 Passing Values into an ActiveX DLL from ASP ??
Go to your page and select View->Source from the menu then look at your
code.  You'll see this;

Private Sub ReadCabinets(myVar)
msgbox myVar

End Sub

There is no code to call any DLL.  When you run that sub you'll display the
value in a message box then do nothing.

Get a book on ASP and read the basics.  Your ASP code is only ran to
generate a static page to send to the browser.  Once sent the ASP processing
ends and the browser has a static page.  There is no ASP running inside the
browser.  ASP is on the server, your VBScript is on the client.  The only
way to interact with the ASP page would be to submit a form with myVar and
that form will go to an ASP page that will call the DLL function.  Or you
could use RDS straight from the client to achieve what you're trying.



Sun, 24 Feb 2002 03:00:00 GMT  
 Passing Values into an ActiveX DLL from ASP ??
Hi:

Thanks for the input, I'm kind of new to ASP and any help is much
appreciated!

Let me explain what I am trying to do:

I'm using the Sheridan ActiveX TreeView control on a webpage. This control
will look into a SQL Server database and load up the various nodes. Now
depending on, which node the user clicks I want to display corresponding
information on the other half of the page ( 2 frames).

I have downloaded the example from the Sheridan site, but there the nodes
are hard coded. In my application the nodes are loaded from a database. So
at run time I need to find out on which node the user has clicked, pass that
value back to a DLL which will process that, talk to the DB and return a
value or a set of values.

I have done this using ActiveX documents, but to make it lighter I'm trying
to do this using ASP's.

Any idea on how I can implement this?

TIA

Rahul


Quote:
> Go to your page and select View->Source from the menu then look at your
> code.  You'll see this;

> Private Sub ReadCabinets(myVar)
> msgbox myVar

> End Sub

> There is no code to call any DLL.  When you run that sub you'll display
the
> value in a message box then do nothing.

> Get a book on ASP and read the basics.  Your ASP code is only ran to
> generate a static page to send to the browser.  Once sent the ASP
processing
> ends and the browser has a static page.  There is no ASP running inside
the
> browser.  ASP is on the server, your VBScript is on the client.  The only
> way to interact with the ASP page would be to submit a form with myVar and
> that form will go to an ASP page that will call the DLL function.  Or you
> could use RDS straight from the client to achieve what you're trying.



Mon, 25 Feb 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing Values into an ActiveX DLL from ASP ??

2. Passing an object to an ActiveX dll from ASP script

3. Pass array from ASP to VB ActiveX DLL

4. Passing value to an ActiveX DLL from an Event Procedure (Help)

5. passing values between VB5 activeX.dlls?

6. Passing an ASP DLL to a VB ActiveX component

7. ASP : Passing values from One ASP to the Next

8. Main report value<-pass/return->subReport values (ActiveX Designer Component 6.0)

9. .ASP - ActiveX Help, Cant pass ActiveX vairables

10. Passing ActiveX control as a parrameter to ActiveX.dll

11. ActiveX DLL calling DLL procedures from ASP app...

12. passing values between web forms in ASP.NET

 

 
Powered by phpBB® Forum Software