.NET Bridge

Cowdery, Bob [UK] Bob.Cowdery at CGI-Europe.com
Thu Mar 23 15:03:49 UTC 2006


Thanks John,

Yes, I'm being stupid, hung between two worlds which handle things
differently. I am getting it to do stuff now. It always complains
invalid selector first time but I think I read that's to be expected.

I can get all the methods and properties that take either no parameters
or a Boolean to work (not complain anyway) but any that take some other
parameter like a UInt16 or Int64 throw a 'message not understood'. Do I
need to mangle parameters in some way?

Regards
Bob


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

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



More information about the Squeak-dev mailing list