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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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