Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to call GetMessageA API Function

Status
Not open for further replies.

vipinhcl

Programmer
Apr 21, 2010
30
0
0
US
How Can I Declare GetMessageA and TranslateMessageA API function as it has an reference argument of type msg and in powerbuilder there is no such any msg datatype. It is saying "Illegal data type msg".
Actual declaration of API function is

FUNCTION ulong GetMessage(ref Msg lpMsg,ulong hwnd,ulong wMsgFilterMin,ulong wMsgFilterMax) LIBRARY "user32.dll" ALIAS FOR "GetMessageA"
FUNCTION ulong TranslateMessage(ref Msg lpMsg) LIBRARY "user32.dll"

Any help please ?
 
Have you tried using string instead of Msg in the declaration?

Matt

"Nature forges everything on the anvil of time
 
No.... I was trying with Message object, but application was hanged during compiling the GetMessageA(). I will try with String datatype and let you know what happend.

Have you ever tried these API function ?
 
No, I have not.

Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top