Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Creating Memory Handles for DDE
Versions des environnements
I have an old windows application that supports DDE that I am required to interface with. I don't have any problem with initiating the connection or submitting requests to it but there is one area that has me stumped.
In order to obtain information under one of the interface commands, the old application requires that I create a memory handle and pass the command in the following format:
lResult = DDEExecute(nChannel, '[LVText(hmem, flags, "ref")]')
The command [LVText(hmem, flags, "ref")] is used to request that the application load the specified memory handle (hmem) with the text pointed to by "ref". There isn't any other help in the old app except for an example call that looks like:
[LVText(1234,0,"xC0015")] where "xC0015" is an ID that I know I can supply and the flags I can create from the 2 byte bit references that are available to me.
It seems that I need to use the _AllocHand() and _FreeHand() API calls to create and ultimately free the memory handle which I am assuming to look like some sort of address. I can't seem to run down anything other than this. Is there something in WIN32API?
Thanks in advance,
Steve
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement