Hi again, <br><br>I am basically trying to integrate some python code with already built VB code.&nbsp; I'd prefer not to have to change VB code, but here are the things i noticed...<br><br>(1)&nbsp; All VB optional arguments must be defined when calling them in Python.Net.&nbsp; <br><br>(2)&nbsp; I have created a function with a structure as the argument.&nbsp; <br><br>Public Structure SomeStruct<br>&nbsp;&nbsp;&nbsp; Public dVal As Double<br>End Structure<br><br>Public Class Class1<br>&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; Public Function test(ByRef arg As SomeStruct) As Boolean<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return True<br>&nbsp;&nbsp;&nbsp; End Function<br>End Class<br><br>Using Python.Net, I can create the class, then the struct and call the function with the struct as the argument.&nbsp; I get the following error:<br><br>System.ArgumentException: Object of type 'System.RuntimeType' cannot be converted to type 'SomeStruct&amp;'<br><br><br><br>Thanks, <br>Alex
 <br><p>&#32;
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>