Re: Beginners Digest, Vol 22, Issue 9

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Beginners Digest, Vol 22, Issue 9

Andy Burnett
@Yoshiki (and everyone else)

Thanks very much for the suggestions about using the self halt and  
dragging onto a workspace - that is very helpful.

The E-Toy Outliner is a small example application - not sure if it is  
in all images. Try searching for Outliner in the classes.  I am hoping  
to extend it so that it can save data to a web server etc. It will be  
an interesting test as my knowledge develops.

I found another solution to getting a handle on an object that was  
dragged from a flap. If I inspect the object and then execute  
something like Temp1 := self  (in the inspector bottom pane), I then  
have a handle on it via a global variable. This also led me to learn  
that Smalltalk removeKey: Temp1 - let's me tidy up the dictionary.

Finally, I have started a blog called
http://learningsmalltalk.blogspot.com

The idea is that it will capture my 'hmms' and 'ahhs' as I go through  
the process. I only mention this in case it is of use/interest to  
other beginners.

Cheers
AB


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Named Primitives et al

david.briant
Hi I'm looking to hook up my own dlls (and some of the standard windows
ones too in due course) to Squeak. I've been through the named-primitive
tutorial and it appears that it is for earlier versions of Squeak than
the present version. Can anyone point me in the right direction to
calling a C interfaced DLL in windows from Squeak (the latest version)?

Many thx

David
Issued by UBS AG or affiliates to professional investors only.
Product of a sales/trading desk and not the Research Dept. Opinions
expressed may differ from those of other divisions of UBS, including
Research. UBS may trade as principal in instruments identified herein
and may accumulate/have accumulated a long/short position in
instruments or derivatives thereof. UBS has policies designed to
manage conflicts of interest. This e-mail is not an official
confirmation of terms and unless stated, is not a personal
recommendation, offer or solicitation to buy or sell. Any prices or
quotations contained herein are indicative only and not for
valuation purposes. Communications may be monitored.

 © UBS 2008.  All rights reserved.
Intended for recipient only and not for further distribution without
the consent of UBS.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Named Primitives et al

cedreek
> Hi I'm looking to hook up my own dlls (and some of the standard windows
> ones too in due course) to Squeak. I've been through the named-primitive
> tutorial and it appears that it is for earlier versions of Squeak than
> the present version. Can anyone point me in the right direction to
> calling a C interfaced DLL in windows from Squeak (the latest version)?
>

Not sure at all, but maybe what you're looking for is FFI...

http://wiki.squeak.org/squeak/1414

You'll find FFI-examples in the universe browser...

hth

Cédrick

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

RE: Named Primitives et al

david.briant
Thx. I've read that article but I can't find an ExternalTypes class in my image. Do I need to load a particular package to get NamedPrimitives or FFI to work?

Thx

David

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of cdrick
Sent: 20 February 2008 13:31
To: A friendly place to get answers to even the most basic questions aboutSqueak.
Subject: Re: [Newbies] Named Primitives et al

> Hi I'm looking to hook up my own dlls (and some of the standard windows
> ones too in due course) to Squeak. I've been through the named-primitive
> tutorial and it appears that it is for earlier versions of Squeak than
> the present version. Can anyone point me in the right direction to
> calling a C interfaced DLL in windows from Squeak (the latest version)?
>

Not sure at all, but maybe what you're looking for is FFI...

http://wiki.squeak.org/squeak/1414

You'll find FFI-examples in the universe browser...

hth

Cédrick
Issued by UBS AG or affiliates to professional investors only.
Product of a sales/trading desk and not the Research Dept. Opinions
expressed may differ from those of other divisions of UBS, including
Research. UBS may trade as principal in instruments identified herein
and may accumulate/have accumulated a long/short position in
instruments or derivatives thereof. UBS has policies designed to
manage conflicts of interest. This e-mail is not an official
confirmation of terms and unless stated, is not a personal
recommendation, offer or solicitation to buy or sell. Any prices or
quotations contained herein are indicative only and not for
valuation purposes. Communications may be monitored.

 © UBS 2008.  All rights reserved.
Intended for recipient only and not for further distribution without
the consent of UBS.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Named Primitives et al

cedreek
depends on your image... Maybe it's not loaded as in 3.9 and later...

Go and see in Universe Browser (open menu) under the category system
then select the different FFI-categories and install them. Maybe
you'll have to make an "update list from network" in the Universe
Browser first.

HTH

Cédrick

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re[2]: Named Primitives et al

Herbert König
In reply to this post by david.briant
Hello David,

dbuc> Thx. I've read that article but I can't find an
dbuc> ExternalTypes class in my image. Do I need to load a particular
dbuc> package to get NamedPrimitives or FFI to work?

maybe you are not aware of the fact that FFI and namedPrimitives are
two independent ways to talk to external code.

To create named primitives you need to get the VMMAKER package,
Cédrick replied on FFI.

As far as I know named primitives are a better choice if you need to
call into a dll very often. You can put the loop which calls into the
external code into the C- code you generate as a primitive and thus
have less overhead.

All in all these are not really beginners topics, so maybe ask in
SqueakDev.


Cheers

Herbert                            mailto:[hidden email]

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners