Results 1 to 5 of 5

Thread: Why the api functions whait for a response?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87

    Question

    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?

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87
    i'm usind Call SetWindowPos and
    a = SendMessage(lHwnd, WM_LBUTTONDOWN......
    a = SendMessage(lHwnd, WM_LBUTTONUP.....

  4. #4
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    Tried SendMessageCallback?
    It returns immediately, and when the other app is done it calls your callback-function. (Look at my Q about SendMessageCallback.)

  5. #5
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    SendMessage waits for a responce.
    PostMessage doesn't.
    So if you don't want it to wait, then use PostMessage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width