Hi Friends,
Can anybody help me to create multi-threaded component using Visual Basic 6.0.
Is there any method to access the QueryInterface from VB.
Please send to me with this address [email protected]
Printable View
Hi Friends,
Can anybody help me to create multi-threaded component using Visual Basic 6.0.
Is there any method to access the QueryInterface from VB.
Please send to me with this address [email protected]
As far as I know, VB only creates single-threaded objects. I know that if you put the COM object in MTS( Microsoft Transaction Server), the threading problem is solved.
You can use kernel32 dll API calls for Createthread,SetThreadpriority, ExitThread etc for implemneting mutlithreading. But I am not sure about the success.
It not possible (yet) to multi-thread in VB. I am not but in the next VB (7) it's possible to multithread as well as oop.
developer
You can create multi-threaded component by first creating Active-exe component.Make sure that for activex-exe project, threading model should be selected as thread per pool >1 in project properties. Now create the reference of that component in your form / component by calling Createobject method.
This will solve the problem for multi-threading
Hi nsundra,
U can create multithreaded objects in VB too. For this u have to create an active-exe project with thread per pool >1 in project properties. Then create an object of it using CreateObject method instead of new. This will create a mulithreaded object
MULTITHREADING WONT WORK AS U EXPECT WITH VB 6.0
tell me if u ever ever get a satisfing answer
Regards