Do you have a default constructor on the HW class?<br><br><div><span class="gmail_quote">On 3/23/06, <b class="gmail_sendername"><a href="mailto:Bob.Cowdery@cgi-europe.com">Bob.Cowdery@cgi-europe.com</a></b> &lt;<a href="mailto:Bob.Cowdery@cgi-europe.com">
Bob.Cowdery@cgi-europe.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">













<div>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi John</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks
for the reply. I can load the library but can't create an instance. If I
do:</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">DotNet
loadLibraryFromFile: 'C:\RadioZone\SDR\SDR-Breadboard\st\DotNetController.dll'</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">ctrl :=
DotNet HW new.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">It
complains message not understood 'new'. The class is definitely HW.
I can create an instance from another .NET assembly.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="text-indent: 36pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Bob</span></font></p></div><div style="direction: ltr;"><span class="e" id="q_10a274c4369512ad_1">


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>

<p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">&gt; </span></font>Hi Bob,<br>
<br>
<font color="navy"><span style="color: navy;">&gt; </span></font>You can use:
DotNet loadLibraryFromFile: 'c:\myassemblies\library.dll'<br>
<br>
<font color="navy"><span style="color: navy;">&gt; </span></font>to load types from
any other assembly.<br>
<br>
<font color="navy"><span style="color: navy;">&gt; </span></font>John</p>

<div>

<p style="margin-left: 36pt;"><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On </span></font></span><span>3/23/06</span><span>, <b><span style="font-weight: bold;"><a href="mailto:Bob.Cowdery@cgi-europe.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Bob.Cowdery@cgi-europe.com</a></span></b>
&lt;<a href="mailto:Bob.Cowdery@cgi-europe.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Bob.Cowdery@cgi-europe.com</a>&gt;
wrote:</span></p>

<div>

<p style="margin-left: 36pt;"><font face="Times New Roman" size="2"><span style="font-size: 10pt;">Hi</span></font> </p>

<p style="margin-left: 36pt;"><font face="Times New Roman" size="2"><span style="font-size: 10pt;">I have some code in C# that I want to port to squeak
but it's quite a lot of work so as a quick fix for the time being I am trying
to use the .NET bridge. Although I can get it to work with the examples that
use built-in types I can't get it to work with an assembly I have built. Before
I go into detail is there anyone out there who is successfully using this with
their own assemblies. </span></font></p>

<p style="margin-left: 36pt;"><font face="Times New Roman" size="2"><span style="font-size: 10pt;">Thanks </span></font><br>
<font size="2"><span style="font-size: 10pt;">Bob</span></font> </p>

<p style="margin-left: 36pt;"><strong><b><font face="Times New Roman" size="3"><span style="font-size: 12pt;">*** Confidentiality Notice ***</span></font></b></strong>
Proprietary/Confidential<br>
Information belonging to CGI Group Inc. and its affiliates<br>
may be contained in this message. If you are not a recipient<br>
indicated or intended in this message (or responsible for<br>
delivery of this message to such person), or you think for<br>
any reason that this message may have been addressed to you<br>
in error, you may not use or copy or deliver this message<br>
to anyone else.&nbsp; In such case, you should destroy this<br>
message and are asked to notify the sender by reply email.</p>

</div>

<p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
<br>
</span></font></p>

</div>

<p style="margin-left: 36pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
It's easy to have a complicated idea. It's very very hard to have a simple
idea. -- Carver Mead </span></font></p>

</span></div><div style="direction: ltr;"></div></div><div style="direction: ltr;"><span class="e" id="q_10a274c4369512ad_3">


<p><strong>*** Confidentiality Notice ***</strong> 
Proprietary/Confidential<br>Information belonging to CGI Group Inc. and its 
affiliates<br>may be contained in this message. If you are not a 
recipient<br>indicated or intended in this message (or responsible 
for<br>delivery of this message to such person), or you think for<br>any reason 
that this message may have been addressed to you<br>in error, you may not use or 
copy or deliver this message<br>to anyone else.&nbsp; In such case, you should 
destroy this<br>message and are asked to notify the sender by reply 
email.</p>




</span></div><br><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>It's easy to have a complicated idea. It's very very hard to have a simple idea. -- Carver Mead