Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetMessage()
Message
From
14/09/1999 00:09:35
 
 
To
13/09/1999 14:39:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00264130
Message ID:
00264327
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform