Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Using a DLL in ASP

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,38458
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Using a DLL in ASP
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Using a DLL in ASP - 10/8/2006 8:46:12 PM   
  StehtimSchilf

 

Posts: 10
Score: 0
Joined: 10/6/2006
Status: offline
Hi Forum

I've got a dll 'mydll.dll' with some functions f1(p1, p2), f2(p3), f3()

In VB6 I use the dll like this:
Declare Function f1 Lib "...\mydll.dll" (ByVal p1 As Long, ByVal p2 As Long) As Long
Declare Function f2 Lib "...\mydll.dll" (ByVal p3 As String) As Long
Declare Function f3 Lib "...\mydll.dll" () As Long

Well and how can I do this in ASP?

cheerioh
SiS

 
 
Post #: 1
 
 RE: Using a DLL in ASP - 10/9/2006 1:52:38 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Traditional ASP or ASP.Net?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to StehtimSchilf)
 
 
Post #: 2
 
 RE: Using a DLL in ASP - 10/9/2006 3:54:53 AM   
  StehtimSchilf

 

Posts: 10
Score: 0
Joined: 10/6/2006
Status: offline
Traditional ASP :)

but if you don't mind, append also the newer ASP.Net way :)

thx a lot
cheerioh
SiS

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Using a DLL in ASP - 10/9/2006 4:30:33 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Well, in traditional, then you are pretty much SOL unless the DLL is written to expose a COM object. In .Net it should just be a matter of adding a reference to the DLL to your project.

We've already established several times over that my ASP skills leave quite a bit to be desired, so there is a reasonable chance that I am wrong. If I am I'm sure one of the real ASP gurus will stumble along and give the right answer.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to StehtimSchilf)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Using a DLL in ASP Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts