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

Visual Basic .dll files question

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,

I am wondering if anybody knows about the ways to call vb .dll files from the ASP code. And where should those .dll files be stored?

Please let me know anything regarding this topic
I'll appreciate your help

Thanks
 
The VB .dll needs to be on the server that your IIS website is on. The directory you put the vb .dll in might not matter, though I've found that sometimes putting it in the System32 directory works best. The main key is that it needs to be registered using the regsvr32.exe utility.

Once its registered on the server, you call it from the .asp page using syntax something like this

set newObj = server.CreateObject("AppName.ClassName")

AppName would be the name of your .dll and ClassName the name of a class within it that contains the methods you want to call.

Then you access it in code like so:
Call newObj.MethodName(param, paramString)

I hope this is helpful....
Ray
 
You may want to consider placing your vb DLLs in MTS. To fully utilize the advantages of MTS, do a little research so you can program them accordingly.

Thanks,

Gabe
 
Good point Gabe, I forgot about this step of the process; yes this is a good idea for sure...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top