I have a VB6 COM DLL with a function declared as follows:
Public Function testFunc(ByRef v1 As Long) As Boolean
When I try to call this from Python2.7 using:
var1 = c_long()
VB6DLL.testFunc(X1)
If X1 is var1, then I get the exception: "int() argument must be a string or number, not 'c_long'"
If X1 is yref(var1), then I get the exception: "int() argument must be a string or number, not 'cArgObject'"
If the VB6 function uses ByVal parameters and I send correct parameters from Python, all is well. So how do I send references, since I would like the DLL to modify the values? Why is the ByRef argument becoming an int()?