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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling the function dll

Status
Not open for further replies.

hungnguyen

Programmer
Sep 22, 2000
43
US
hi,

I have a function, let's call it as f1, as ADODB.Recordset. Also, I would like to call it function in web page and return as a record set. It function takes 7 required varriables and 10 optional variables.
How can we call this funtion.
[sig][/sig]
 
Do you mean that you've created a dll and want to use its functions in a web page? Then, here's how it works:

(assume d1 = dll name, c1 = class name, f1 = function)

set myObj = Server.CreateObject("d1.c1")
if myObj = Nothing then
' error - object not instantiated
else
dim myRS
myRS = myObj.f1
end if
set myObj = Nothing

HTH [sig]<p>Choo Khor<br><a href=mailto:choo.khor@intelebill.com>choo.khor@intelebill.com</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top