Hi again, <br><br>I am basically trying to integrate some python code with already built VB code. I'd prefer not to have to change VB code, but here are the things i noticed...<br><br>(1) All VB optional arguments must be defined when calling them in Python.Net. <br><br>(2) I have created a function with a structure as the argument. <br><br>Public Structure SomeStruct<br> Public dVal As Double<br>End Structure<br><br>Public Class Class1<br> ...<br> Public Function test(ByRef arg As SomeStruct) As Boolean<br> return True<br> 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. I get the following error:<br><br>System.ArgumentException: Object of type 'System.RuntimeType' cannot be converted to type 'SomeStruct&'<br><br><br><br>Thanks, <br>Alex
<br><p> 
<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>