Results 1 to 2 of 2

Thread: [resolved] Call a CallBack from c++ to vb

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    [resolved] Call a CallBack from c++ to vb

    i'm writing a function in vc++ (6.0) that needs to notify my vb app periodically the status of a long running process. the callback function in vb is passed using the AddressOf operator. My question is this, how do I call that function in c++?

    i will be processing a couple of HUGE arrays and would like a progress bar in vb to be updated.

    the CallBack function will be created in vb like this:
    VB Code:
    1. Public Function cbkUpdateStatus(Current As Long, Total As Long, Param1 As Long, Param2 As Long) As Long
    2.     '...
    3. End Sub

    I will pass the function to the dll like this:
    VB Code:
    1. RetVal = MyDllFunction(Array1, Array2, Param1, Param2, AddressOf cbkUpdateStatus)
    Last edited by agent; Jan 5th, 2003 at 02:53 AM.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

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