Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Memory Handles for DDE
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Creating Memory Handles for DDE
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00992460
Message ID:
00992460
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform