[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:
Public Function cbkUpdateStatus(Current As Long, Total As Long, Param1 As Long, Param2 As Long) As Long
'...
End Sub
I will pass the function to the dll like this:
VB Code:
RetVal = MyDllFunction(Array1, Array2, Param1, Param2, AddressOf cbkUpdateStatus)