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)
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.