/Visual Studio 2008/CSDllCOMServer/CSDllCOMClient.vbs
Visual Basic | 15 lines | 7 code | 5 blank | 3 comment | 0 complexity | db8a389a41487d9292ebaaa8e8f9cea7 MD5 | raw file
- SET obj = CreateObject("CSDllCOMServer.SimpleObject")
-
- MsgBox "A CSDllCOMServer.SimpleObject object is created"
-
- ' Call the HelloWorld method that returns a string
- MsgBox "The HelloWorld method returns " & obj.HelloWorld
-
- ' Set the FloatProperty property
- MsgBox "Set the FloatProperty property to 1.2"
- obj.FloatProperty = 1.2
-
- ' Get the FloatProperty property
- MsgBox "The FloatProperty property returns " & obj.FloatProperty
-
- SET obj = Nothing