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

Using my own dll

Status
Not open for further replies.

capone67

Programmer
Nov 6, 2000
115
CA
Hi Gang

I have written my own activeX dll. Now I need to figure out how to connect to it using VBScript. Any ideas?

Ken Patenaude
 
Do something like this:

objVar = CreateObject("MyProjectName.MyClassName")

You can then call the public methods and access the public variables through the objVar variable using the "." operator.

call objVar.MyMethod(SomeParameter1, SomeParameter2)

Chip H.
 
you asked in reference to vbscript, so i assume your doing this on an asp page - in which case you would need to put the .dll on the web server, register it, and change line in chiph's response to:

objVar = Server.CreateObject("MyProjectName.MyClassName")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top