call com component and not wait for execution 
Author Message
 call com component and not wait for execution

HI,

I've written a com component in vb6 and i want to call this component from a
vb6 application.
I have to pass some parameters to the function in the com component (some
strings and an array)

BUT: I don't want to wait until the component has finished everything he has
to do, and i don't need to recieve a message or whatever that the component
has finished doing his stuff.

So in fact in the vb6 app i want to activate the com component and i want to
recieve the focus back in my vb6 app immediately, and let the com component
do his thing in the background.

Is this possible and how???

A big thanks in advance

Greetz

Johan



Tue, 07 Sep 2004 20:48:49 GMT  
 call com component and not wait for execution
Make the 'COM Component' into an AX EXE

Pass the data you want to send it through an 'Exposed Class'
- you can then set a Flag that is picked up by the AX EXEs own thread
- either from a Timer that you enable
- or from the Thread that runs if you set its startup object to :-
    Sub Main

You can then notify the caller of completion by either using a
Callback or raising an Event.



Quote:
>HI,

>I've written a com component in vb6 and i want to call this component from a
>vb6 application.
>I have to pass some parameters to the function in the com component (some
>strings and an array)

>BUT: I don't want to wait until the component has finished everything he has
>to do, and i don't need to recieve a message or whatever that the component
>has finished doing his stuff.

>So in fact in the vb6 app i want to activate the com component and i want to
>recieve the focus back in my vb6 app immediately, and let the com component
>do his thing in the background.

>Is this possible and how???

>A big thanks in advance

>Greetz

>Johan



Tue, 07 Sep 2004 22:20:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Activate COM function and not wait for execution

2. COM component waiting for response

3. waiting and aborting a com call using VB...

4. com object will not read registry when com object called from asp (vb works fine)

5. Not waiting for Async call

6. Type Mismatch Error calling VB COM component from VBScript

7. CAlling C++ COM Component with reference paramater

8. Forms in COM Component behave differently when called from VB6 or VC++6 Apps

9. Calling debugged component from Com+

10. Type Mismatch Error calling VB COM component from VBScript

11. Calling my VB COM (DCOM) component from C/C+

12. Creating an COM-Component that can be called from VBScript

 

 
Powered by phpBB® Forum Software