Click to See Complete Forum and Search --> : Creating Muti-threaded component in VB
Ramani Ranjan
January 28th, 2000, 04:37 AM
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 ramaniranjann@yahoo.com
nsundara
January 28th, 2000, 11:18 AM
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.
Santhosh Joseph
August 30th, 2000, 04:16 AM
You can use kernel32 dll API calls for Createthread,SetThreadpriority, ExitThread etc for implemneting mutlithreading. But I am not sure about the success.
riccardobecker
September 1st, 2000, 08:09 AM
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
avisiyer
September 27th, 2000, 03:30 AM
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
avisiyer
September 29th, 2000, 12:41 AM
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
mpaul
November 5th, 2001, 04:03 AM
MULTITHREADING WONT WORK AS U EXPECT WITH VB 6.0
tell me if u ever ever get a satisfing answer
Regards
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.