PDA

Click to See Complete Forum and Search --> : Why the api functions whait for a response?


Antonio Begue
Jul 3rd, 2000, 11:20 PM
i have a program that send some api functions to an external app
but some times my app when it send an api function, it stop, waiting something from the other app.
is there a way to avoiding that?
telling the api function to not wait or something like that?

Sam Finch
Jul 4th, 2000, 01:35 AM
What Exactly are you doing, Are you using SendMessage, if so there should be no reason for it to stop waitng, if you're using postmessage or sendmeassage timeout then use sendmessage instead.

Antonio Begue
Jul 5th, 2000, 03:20 PM
i'm usind Call SetWindowPos and
a = SendMessage(lHwnd, WM_LBUTTONDOWN......
a = SendMessage(lHwnd, WM_LBUTTONUP.....

Thomas Halsvik
Jul 6th, 2000, 03:02 AM
Tried SendMessageCallback?
It returns immediately, and when the other app is done it calls your callback-function. (Look at my Q about SendMessageCallback.)

arachnid
Jul 8th, 2000, 06:21 PM
SendMessage waits for a responce.
PostMessage doesn't.
So if you don't want it to wait, then use PostMessage.