Dim cls As New pbcom.COClass_pbcom_functions MsgBox(cls.simple_multiplier(2, 2))2. This works in VB.Net (Console application); I have the following code in the Main method:
Dim cls As New pbcom.COClass_pbcom_functions Console.WriteLine(cls.simple_multiplier(2, 2).ToString()) Console.Read()3. Similar code works in C#.Net (Windows)
ox = createobject("pbcom.COClass_pbcom_functions") * Error message: Class definition pbcom.COClass_pbcom_functions is not found.6. I tried using the INTERFACE option but the function always returns .T.
x=NEWOBJECT("myclass") ?x.Ipbcom_functions_simple_multiplier(2,2) DEFINE CLASS myclass AS session OLEPUBLIC IMPLEMENTS Ipbcom_functions IN "d:\test\powerbuilder\test01\pbcom.dll" && "pbcom.COClass_pbcom_functions" PROCEDURE Ipbcom_functions_simple_multiplier(arg1 AS INTEGER, arg2 AS INTEGER) AS INTEGER * add user code here return dodefault(arg1,arg2) ENDPROC ENDDEFINE