Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
dim obj
set obj=CreateObject("Pro1.SimpleCom")
Dim lngReturnValue
Wscript.Echo("My number is ")
obj.add 5, 7, lngReturnValue
Wscript.Echo("My number is ")
MsgBox "The value of 5 + 7 is: " & lngReturnValue

My solution name is pro1 & class name CSimplecom ..I think i am doing the mistake in creating the vbscript object. How to do it?
Posted
Updated 5-Aug-15 22:42pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900