jagadishkumar
January 25th, 2000, 02:44 AM
Hi,
I have implemented an Outgoing Interface for a COM component in VB. I pass the callback function (implemented in VB) to the component thro' an Advise method.
Through another interface(implemented in C++), to the same component, I call a method Compute(). In this method I start a thread to do a long computation. Once the computation is over, I should call the Callback function in VB. How should I do this?
I tried using the CoMarshalInterThreadInterfaceInStream() method to stream the Callback function. But that returns a failure code!
Can somebody help me?
Thanx,
Jagadish.
I have implemented an Outgoing Interface for a COM component in VB. I pass the callback function (implemented in VB) to the component thro' an Advise method.
Through another interface(implemented in C++), to the same component, I call a method Compute(). In this method I start a thread to do a long computation. Once the computation is over, I should call the Callback function in VB. How should I do this?
I tried using the CoMarshalInterThreadInterfaceInStream() method to stream the Callback function. But that returns a failure code!
Can somebody help me?
Thanx,
Jagadish.