Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web Development
Expertise: Beginner
Nov 5, 1999

Call a DLL From ASP

Question:

I have a DLL called math911.dll and a function called a101.

Private objM As MATH911.questions
Set objM = New MATH911.questions
'use the function
Call objM.a101(level, TOPlevel, tipe, problem, ans, cpt, INSTRUCTIONS, AMT, LEAST, x(), g$(), k())
Pbox.print problem

How can I call the function in the DLL from an Active Server Page (ASP) and print the problem in the picture box in the OCX?

Answer:

You will need to make some changes. To use your code in ASP, you would have to rewrite it like this:



<% 

Dim objM ' THERE ARE NO TYPES ALLOWED IN ASP

Set objM = Server.CreateObject("MATH911.questions") ' "NEW" IS NOT ALLOWED IN ASP, EITHER

'use the function
Call objM.a101(level, TOPlevel, tipe, problem, ans, cpt, INSTRUCTIONS, AMT, LEAST, x(), g$(), k())
%>


>


DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date