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:

Code:
axBIBDisplay1(ref object xsockets, ref object ysockets)
In VB, it just accepts int values. In c# I am calling it like this:
Code:
int x=12;
int y=12;
axBIBDisplay(ref (object) x, ref (object) y);
I am still getting the error:
"A ref or out arguement must be an lvalue"

What do I need to do?