Hi Scot - generally CLR namespaces == python modules, so after loading the assembly I think you <br>need to import NSPC. I don&#39;t have any VB experience, so not sure offhand what a VB Module <br>corresponds to / compiles to in managed code (guessing it corresponds to a compilation unit at <br>
first glance, but its been a long while since I&#39;ve worked on this stuff).<br><br>Short story, whatever Imports statements you would use to use your code in an external VB file <br>would need to have corresponding import statements in Python code...<br>
<br>Hope this helps!<br><br> - Brian<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 4:37 PM, Scot Kelly <span dir="ltr">&lt;<a href="mailto:skelly@passportcapital.com">skelly@passportcapital.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<u></u>

<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Re: Python for .NET.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">All,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have created a Clr example which instantiates and manipulates objects of type System.String.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">When I try to have it access the HelloWorld-esque object that I have written in VB.net python throws an error on my import statement.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">In the docs on “Python for .NET” there’s no discussion on what form the .NET code must be in to be reachable, in terms of namespaces, modules and classes.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Here’s my code. I’ve tried encapsulating my class in Namespace and Module wrappers no avail.  Perhaps the lack of a PublicKeyToken is an ssue.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Any help you can provide would be greatly appreciated.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Feedback...<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">I thought the process was fairly simple. 
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">0. The inclusion of python.exe in the .zip merits annotating as optional.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">1. The readme should probably discuss the need to sys.path.append(&#39;c:\Python25\Lib\site-packages\Clr&#39;).<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">2. I thought the filename, Python.Runtime.dll, was too generic.  Is it within your abilities to name it more specifically, such as PythonForNet.Runtime.dll<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">3. There’s no reference section for the methods of clr. (ex: what is the parameter to and usage of ListAssemblies?)<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Regards,<u></u><u></u></span></font></p>
<p class="MsoNormal"><u></u><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Scot Kelly</span></font><u></u><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">ps: a little revolution now and then is a good thing<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">python code:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">import sys<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">sys.path.append(&#39;c:\Python25\Lib\site-packages\Clr&#39;) #Contains two files: clr.pyd and Python.Runtime.dll.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">import clr<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">def CallMicrosoftStringClass():<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #clr.AddReference(&quot;System&quot;)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #from System import String as DotNetString<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #print clr.ListAssemblies()<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;Welcome to CallMicrosoftStringClass.&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    a = DotNetString(&#39;SomeTyping&#39;)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;a is a instance of &#39; + a.__class__.__name__<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;a&#39;, a<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    b = DotNetString(a.PadRight(15, &#39;x&#39;))<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;b&#39;, b<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    c = DotNetString(b.Insert(2,&#39;abc&#39;))<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;c&#39;, c   
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    d = c.ToUpper() #note: not calling construtor of DotNetString here.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;d&#39;, d<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;d is a instance of &#39; + d.__class__.__name__<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;Leaving CallMicrosoftStringClass.&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">def CallObjectTwo():<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #Import System
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    clr.AddReference(&quot;CallbackExample&quot;)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;1111.a&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print clr.FindAssembly(&quot;CallbackExample&quot;)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;1111.b&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #print dir(clr)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    for e in clr.ListAssemblies(0):<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">        print e<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;1111.c&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    for e in clr.ListAssemblies(1):<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">        print e<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;1111.d&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #from Namspacexyz import ObjectTwo as ObjDos<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #import CallbackExample<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    import ObjectTwo
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;2222&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">   
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;Welcome to CallObjectTwo.&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #a = ObjectDos(&#39;SomeTyping&#39;)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    #print &#39;a is a instance of &#39; + a.__class__.__name__<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">    print &#39;Leaving CallObjectTwo.&#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> 
<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;  &#39;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">#for element in sys.path:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">#  print element<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;Welcome to Scots_ClrExample      &#39;*3<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">CallObjectTwo()<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">print &#39;Finished with Scots_ClrExample      &#39;*3<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">VB.net code:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Imports System<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Collections.ArrayList<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Collections<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Threading<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Runtime.InteropServices<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Data.Sql<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports System.Data.SqlTypes<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Imports Microsoft.SqlServer.Server<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;&#39;Imports System.Win32Native<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;How to compile:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39; cd &quot;c:\Program Files\Microsoft Sql Server&quot;<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39; path=%path%;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39; vbc /target:library  &quot;CallbackExample.vb&quot; | more<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Public Namespace NSPC<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;Public Module CallbackExample<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">  &#39;Demo callback functionality<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">  Public Class ObjectTwo<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">     Public Shared Function HelloWorld() as string<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          return &quot;Hello World from ObjectTwo !!&quot;<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">     End Function<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> 
<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">      Public Shared Function TestCallBack(obj As Object) As string<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          Dim sResult as string<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          sResult = &quot;Hello&quot;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          obj.CallbackFunc237(sResult)
<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          sResult = &quot;Goodbye&quot;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">          return sResult &#39;new SqlChars(CSTR(sResult))
<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">      End Function<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">  End Class<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">&#39;End Module<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">End Namespace<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
</div>
<font face="Garamond"><font size="4">
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p></p>
<span style="LINE-HEIGHT:115%;FONT-FAMILY:&#39;Garamond&#39;,&#39;serif&#39;;LETTER-SPACING:1.5pt;FONT-SIZE:13.5pt">
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<font color="#202535"><u>                                </u><br>
PASSPORT CAPITAL<br>
</font></span></font>30 Hotaling Place, Suite 300<br>
San Francisco, CA 94111<br>
<a href="http://www.passportcapital.com/" target="_blank"><font face="Garamond">www.passportcapital.com</font></a><br>
<br>
<b>Scot Kelly<br>
</b>Tel <a href="tel:415-525-8910" value="+14155258910" target="_blank">415-525-8910</a><br>
Fax <a href="tel:415-321-4620" value="+14153214620" target="_blank">415-321-4620</a><br>
<a href="mailto:skelly@passportcapital.com" target="_blank">skelly@passportcapital.com</a><br>
<br>
<p></p>
<p></p>
<p align="left"></p>
<p></p>
</font>
<p></p>
<p></p>
<br>
<font face="monospace"><br>
<br>
CONFIDENTIALITY: The information transmitted is intended only for the addressee and may contain confidential or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by anyone other than the intended recipient is prohibited. If you received this message in error, please contact the sender and delete the material from all computers. <br>

<br>
E-mail transmissions cannot be guaranteed to be secure or error-free and we accept no liability for any errors or omissions. We screen for viruses on a routine basis, however, we make no representation or warranty as to the absence of viruses in this e-mail or any attachments.  Please note that for regulatory and compliance reasons we may monitor and read e-mails sent to and from our servers. <br>

<br>
Passport Capital, LLC and its affiliated investment vehicles are actively engaged in investment management and evaluation activities in global markets and do not wish to be exposed to any nonpublic information regarding any company(s) or security(s) that could be deemed material and restrict their ability to trade securities without their express prior consent.</font></div>


<br>_________________________________________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/mailman/listinfo/pythondotnet</a><br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Brian Lloyd<br>
<a href="mailto:brian.d.lloyd@gmail.com" target="_blank">brian.d.lloyd@gmail.com</a><br>
(c) 540.845.2975</font><br>