2. VB编写的vb.dll中,有一个函数,该函数需要调用到vc.dll中的 vcFun 函数:Public Function vbFun(ByRef var1 As Byte, ByVal var2 As Byte) As Integer'需要调用vc.dll的vcFun,其中,参数就是var1,var2 。如何传参数?
'我是这样写的,感觉上好像没什么问题,但是结果老是不对
vcFun( VarPtr(var1), var2)End Function