I am trying to call a function from an activex control that I have imported. It was written in VB6. When I am calling the function in c#, the signature shows as:
In VB, it just accepts int values. In c# I am calling it like this:Code:axBIBDisplay1(ref object xsockets, ref object ysockets)
I am still getting the error:Code:int x=12; int y=12; axBIBDisplay(ref (object) x, ref (object) y);
"A ref or out arguement must be an lvalue"
What do I need to do?




Reply With Quote