Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetMessage()
Message
De
14/09/1999 00:09:35
 
 
À
13/09/1999 14:39:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00264130
Message ID:
00264327
Vues:
21
Declaration:

DECLARE INTEGER GetMessage IN WIN32API STRING @, INTEGER, INTEGER, INTEGER

You probably know the id of the message you want to retrieve, so, set the 3rd and 4th param to that id. Pass 0 as 2nd param, so you don't have problems with window handles.

The first param is where you receive the message. This param is a C structure, so, you can use a VFP string. The structure has 28 bytes, so the string must also have 28 chars. Initialize it to REPL(CHR(0), 28).

After the function call, parse the first param (ie your string) to get the returned info. Each structure member has 4 bytes, except the last one which has 8 bytes.

The function returns -1 if error.

Vlad

>Has anyone used the windows API GetMessage() in VFP6? I am having problems with the syntax and exactly how to use it.
>
>I need to use GetMessage() because I am trying to interface with an application that is sending me a message and waiting on a return that the message was received.
>
>I do have the variables of my window handle and the other apps handle.
>
>Any help would be greatly appreciated.
>
>Thanks,
>
>Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform