How to test a COM DLL using .vbs file?

Light Poster
17Oct2007,13:27   #1
Jaya's Avatar
Hello,

I am new to COM Programming. I have created a COM Object in vc++(ATL Wizard) with two simple functions add and subtract 2 nos. I need to test it using a vbs file. How do I proceed? How to include the DLL in this file. Can anyone help me?

thanks,
Jaya
Contributor
14Nov2007,17:01   #2
urstop's Avatar
1. Register the COM DLL on your machine.
2. In the VBS file you can use the CreateObject method to create an instance of the COM object and call its methods.

Regards,
UrStop
Contributor
14Nov2007,17:07   #3
urstop's Avatar
Also, if you are asking about VB Script in a ASP page then it would be server.CreateObject instead of just CreateObject