How to test a COM DLL using .vbs file?

Jaya's Avatar, Join Date: Dec 2006
Light Poster
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
0
urstop's Avatar, Join Date: Oct 2007
Contributor
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
0
urstop's Avatar, Join Date: Oct 2007
Contributor
Also, if you are asking about VB Script in a ASP page then it would be server.CreateObject instead of just CreateObject