' Collection of code snippets by Arne Vajhøj 
' (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
WScript.Echo "COM/VBS:"
Set test = CreateObject("Test.CoTest")
WScript.Echo "123 + 456 = " & CStr(test.Add(CLng(123), CLng(456)))
WScript.Echo "123 + default = " & CStr(test.Add(CLng(123)))
WScript.Echo "ABC + XYZ = " & test.Concat("ABC", "XYZ")
WScript.Echo "ABC + default = " & test.Concat("ABC")
WScript.Echo "IV = " & CStr(test.IV) & " SV = " & test.SV
test.IV = 123
test.SV = "ABC"
WScript.Echo "IV = " & CStr(test.IV) & " SV = " & test.SV
Set another = test.Another()
WScript.Echo "Another 123 + 456 = " & CStr(another.Add(CLng(123), CLng(456)))
Set another = Nothing
' second non-default interface is not accessible
Set test = Nothing
