Accessing a .dll with ASP

TheWizardofInt
08-12-2002, 07:50 AM
I am unsure how to do this.

In VB, I would access a .dll by declaring a function, like this:


Public Declare Function GMW_LoadBDE Lib "GM5S32.dll" (ByVal _
sSysDir As String, ByVal sGoldDir As String, ByVal sCommonDir _
As String, ByVal sUser As String, ByVal sPassWord As String) As _
Long


How would I do this in ASP?

Any help is appreciated.

Thinker
08-12-2002, 09:09 AM
You can't. If you need this functionallity, you will have to put it in
an ActiveX DLL and use CreateObject in ASP.

TheWizardofInt
08-12-2002, 10:15 AM
Thanks, Thinker. As always, you are a godsend.

Now, in the philosophy of "better to ask a stupid question that to do a stupid thing" are you saying I should bundle that statement and statements like it into an ActiveX .dll, then execute them through there?

I would imagine that, were the gm5s32.dll on the same directory as the ActiveX .dll on the server, then the one could find the other.

Thanks again!

Thinker
08-12-2002, 10:39 AM
The standard DLL isn't registered, so windows finds it by using
a standard search path order. The ActiveX component you would
write to use the function in that standard DLL would have to be
registered on the server. VBScript (ASP) doesn't support directly
calling functions in standard DLLs, but it supports creating objects
that can call functions in standard DLLs. It is just object wrapping
the functions.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum