[futurebasic] Re: [FB] Mysterious chat between applications

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1998 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Mon, 2 Nov 1998 10:56:43 +1100
Al Pastor-Serrano said in [FB] Mysterious chat between applications

> Hello,
>
> It is written in the Handbook manual (p. 377) that we can allocate
> memory blocks on the System Heap. While it is not recommended, it could
> be useful when we want several applications to communicate.
> Any idea on how  applications can communicate by this mean?
>

How about this "old-timers" technique:

1. Create your block in the system heap
2. Fill it with whatever data you wish to transfer
3. Install a Getalt, whose contents is the pointer to this block
4.  Other app calls Gestalt, obtains pointer
5. Other app reads and/or alters the data as it sees fit
6. Start using AppleEvents 'cause they are better...   :-)

Jamin