Results 1 to 2 of 2

Thread: [RESOLVED] [2008] Calling a function from another thread

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Resolved [RESOLVED] [2008] Calling a function from another thread

    Hello,

    I have a function which is a callback. Code sippet below.

    However, as the OnIncomingCall() will be on a different thread, I don't think it can call the IncomingCallAlert(). With controls you can use a delegate and invoke the control.

    Which is the best way to do the same with a function?

    Many thanks for any advice,

    Steve

    Code:
    private sub OnIncomingCall()
    .
    .
    IncomingCallAlert()
    .
    Sub End
    
    
    private sub IncomingCallAlert()
    'Play sound
    Sub End
    Last edited by steve_rm; May 28th, 2008 at 12:14 AM.
    steve

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