.NET Bridge
John Pierce
john at pierce.name
Thu Mar 23 14:52:10 UTC 2006
Well, if you only have a constructor like:
public HW(String name) { ... }
then you would need to create it in DotNet as follows:
hw := DotNet HW new: 'name'.
Regards,
John
On 3/23/06, Bob.Cowdery at cgi-europe.com <Bob.Cowdery at cgi-europe.com> wrote:
>
> No, would that be important then?
>
> Bob
>
> >> Do you have a default constructor on the HW class?
>
> On 3/23/06, Bob.Cowdery at cgi-europe.com < Bob.Cowdery at cgi-europe.com> wrote:
>
> Hi John
>
> Thanks for the reply. I can load the library but can't create an instance. If I do:
>
> DotNet loadLibraryFromFile: 'C:\RadioZone\SDR\SDR-Breadboard\st\DotNetController.dll'
>
> ctrl := DotNet HW new.
>
> It complains message not understood 'new'. The class is definitely HW. I can create an instance from another .NET assembly.
>
> Bob
More information about the Squeak-dev
mailing list
|