Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   How to test a COM DLL using .vbs file? (http://www.go4expert.com/forums/test-com-dll-using-vbs-file-t6887/)

Jaya 17Oct2007 13:27

How to test a COM DLL using .vbs file?
 
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

urstop 14Nov2007 17:01

Re: How to test a COM DLL using .vbs file?
 
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

urstop 14Nov2007 17:07

Re: How to test a COM DLL using .vbs file?
 
Also, if you are asking about VB Script in a ASP page then it would be server.CreateObject instead of just CreateObject


All times are GMT +5.5. The time now is 10:11.