Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Atoms
Message
De
06/09/2004 18:06:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00939784
Message ID:
00939795
Vues:
10
You may be right. In that article I see that SendMessage is used. I also found an article that suggests PostMessage, rather than SendMessage. It is Delphi code: http://www.undu.com/Articles/990427c.html

I wonder if anyone is prepared to write some equivalent vfp-code.

>You can use Atoms to exchange data but you've to use some other way for inter applications communications. The DDE uses WIndows Messaging, for example. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/DataExchange/DynamicDataExchange/UsingDynamicDataExchange.asp?frame=true
>
>>
>>In my search for a method that lets two apps (one is vfp, the other a delphi exe) share some information in memory, I found out that MS offers us global 'atoms'. And I found only one message here on the UT that deals with it. No one has taken notice of what this writer - Mike Gagnon - tried to learn us. Here's the link:
>>
>>Re: Prevent same program to be open multiple times on a syst Thread #923397 Message #923403
>>
>>This MS link is also of importance:
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/DataExchange/Atoms/AtomReference/AtomFunctions/GlobalDeleteAtom.asp
>>
>>I have been playing around with the atom functions. In one vfp app I added the atom, in another (vfp) app I successfully used the other functions, either by having available nAtom, or by using the atom name (cString).
><snip>
>>The potential is - I hope - that it can be used as a memory based alternative for info exchange, which most of us now do with the help of a file.
>>
>>However, I don't get the picture on how to do this. I can create an 'atom name' and retrieve an 'atom'. Furthermore, knowing the atom (better say 'atom number'?) I can retrieve the name. Knowing the name I can retrieve the number. And I can delete the atom name and number. But that's not enough, I fear.
>>
>>Who has an idea on how to manipulate these functions in order to let two apps communicate information?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform