Can you access these same functions in C#? Maybe what you have to do is write a wrapper library for your VB.NET library in C#, and have Python access the library through the the wrapper.<br><br>- Feihong<br><br><br><b><i>Kyle Stevens &lt;kyle.stevens@thenortheastgroup.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> We have an application that was developed in Visual Basic, and would <br>like to use Python for .NET to extend it.  I've played around with it a <br>bit, and everything works fine if it is within a class in the .Net assembly.<br><br>However, there are a number of components that exist as public functions <br>within a module.  I cannot seem to access them from Python for .NET.<br><br>My latest session is shown below, where I try to import and use the <br>function, "NonQuery" within the module, "SQL_Module" to no avail.<br><br>Thanks for any help, and thanks for this wonderful
 piece of software.  I <br>can't wait to start programming some things with this instead of Visual <br>Basic.<br><br>Microsoft Windows XP [Version 5.1.2600]<br>(C) Copyright 1985-2001 Microsoft Corp.<br><br>Z:\&gt;\\buffalo02\share\IT\python\python\python.exe<br>Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit <br>(Intel)] on<br>win32<br>Type "help", "copyright", "credits" or "license" for more information.<br> &gt;&gt;&gt; import Nepco4<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: No module named Nepco4<br> &gt;&gt;&gt; from NepcoV2 import Order<br> &gt;&gt;&gt; from NepcoV2 import NonQuery<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: cannot import name NonQuery<br> &gt;&gt;&gt; from NepcoV2 import SQL_Module.NonQuery<br>  File "<stdin>", line 1<br>    from NepcoV2 import SQL_Module.NonQuery<br>                                  ^<br>SyntaxError: invalid
 syntax<br> &gt;&gt;&gt; from NepcoV2.SQL_Module import NonQuery<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: No module named SQL_Module<br> &gt;&gt;&gt; import Nepco4.NepcoV2<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: No module named Nepco4.NepcoV2<br> &gt;&gt;&gt; from Nepco4 import NepcoV2<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: No module named Nepco4<br> &gt;&gt;&gt; from NepcoV2 import SQL_Module<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: cannot import name SQL_Module<br> &gt;&gt;&gt; from NepcoV2 import SQL_Module5<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>ImportError: cannot import name SQL_Module5<br> &gt;&gt;&gt; from NepcoV2 import SQL_Modulf<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in
 <module><br>ImportError: cannot import name SQL_Modulf<br> &gt;&gt;&gt; from NepcoV2 import Shipping_Detail_Report<br> &gt;&gt;&gt; from NepcoV2 import *<br> &gt;&gt;&gt; NonQuery()<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>NameError: name 'NonQuery' is not defined<br> &gt;&gt;&gt; NepcoV2.NonQuery()<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>NameError: name 'NepcoV2' is not defined<br> &gt;&gt;&gt;<br>_________________________________________________<br>Python.NET mailing list - PythonDotNet@python.org<br>http://mail.python.org/mailman/listinfo/pythondotnet<br></module></stdin></module></stdin></module></stdin></module></stdin></module></stdin></module></stdin></module></stdin></module></stdin></stdin></module></stdin></module></stdin></blockquote><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>