Got a strange one and I know it is something silly but I can't see it for anything!
I have a DLL created in VB.net (No I can't change it! :-)) and am calling it from C#. The problems come at the point the object is created in C# and I get the message that it has "some invalid arguments".
The constructor code in the DLL is as follows:
Sub New(ByRef Connection As IConnection)
The code in C# is:
IConnection conn = new Connection();
CustomObject test = new CustomObject(conn)
It is happy with the first line but it gives the error message ("some invalid arguments") on the second line.
I have also created a secondary project in VB.net and called the DLL and it works fine there.
What am I doing wrong?
Thanks in advance,
Andy
IConnection conn = new Connection(); CustomObject test = new CustomObject(ref conn)
maybe ?