我通过VB新建了一个DLL,工程名为myabapp,类名为myab,函数名为myab
Public Function myab(a As Integer, b As Integer) As Double
Dim i As Double
i = a + b
myab = i
End Function
注册DLL后,
(setq rndnum (vlax-invoke-method
(vlax-get-or-create-object "myabapp.myab")
"myab"
2
5
)
)
返回的是0.0
_$
请教原因