|
RE: Win32 OS functions: msg#00101lang.smalltalk.squeak.beginners
Thanks. Are there examples of how to do a call-back into Smalltalk or read from a Windows message queue? It's been a while since I compiled a VM (1995 was the last time in VW2) and I've not used Smalltalk since '97 so not totally sure what I snow possible. I'd like to get two squeak images to talk together using memory mapped files and asynchronous windows message sends or possibly named pipes. Thanks for your help David -----Original Message----- From: beginners-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx [mailto:beginners-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David T. Lewis Sent: 22 December 2006 13:46 To: A friendly place to get answers to even the most basic questions aboutSqueak. Subject: Re: [Newbies] Win32 OS functions On Fri, Dec 22, 2006 at 08:38:01AM -0000, david.briant@xxxxxxx wrote: > Hi > > I want to play around with some cross-thread and cross-process stuff in > Windows XP. E.g. memory mapped files, windows message sends, named pipes > and so on and was wondering how to access these methods in Squeak. Any > pointers would be welcome. The easiest way to do things like this is with the Foreign Function Interface (FFI). Usually you can find this in the Squeak image in the "FFI-*" categories (but for some versions you may need to load it from SqueakMap). Look at category 'FFI-Examples-Win32' for examples of what can be done. This is definitely getting out of "newbie" territory, but if you are comfortable building your own VM and plugins, you can also load the OSProcessPlugin from SqueakMap. This provides some Win32 thread and handle primitives that might be useful to you, or that you can modify to meet your needs. Have fun, Dave _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners This communication is issued by UBS AG and/or affiliates to institutional investors; it is not for private persons. This is a product of a sales or 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 or short position in instruments or derivatives thereof. UBS has policies designed to negate conflicts of interest. This e-mail is not an official confirmation of terms and unless stated, is not a recommendation, offer or solicitation to buy or sell. Any prices or quotations contained herein are indicative only. Communications may be monitored. © 2006 UBS. All rights reserved. Intended for recipient only and not for further distribution without the consent of UBS.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Win32 OS functions, David T. Lewis |
|---|---|
| Next by Date: | Re: Re: Re: latest SqueakSource image?, Franz Josef |
| Previous by Thread: | Re: Win32 OS functions, David T. Lewis |
| Next by Thread: | Re: Win32 OS functions, David T. Lewis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |