CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2000
    Posts
    13

    Creating Muti-threaded component in VB

    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]


  2. #2
    Join Date
    Jan 2000
    Posts
    9

    Re: Creating Muti-threaded component in VB

    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.


  3. #3
    Join Date
    Aug 2000
    Location
    India
    Posts
    3

    Re: Creating Muti-threaded component in VB

    You can use kernel32 dll API calls for Createthread,SetThreadpriority, ExitThread etc for implemneting mutlithreading. But I am not sure about the success.


  4. #4
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    5

    Re: Creating Muti-threaded component in VB

    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

  5. #5
    Join Date
    Sep 2000
    Posts
    8

    Re: Creating Muti-threaded component in VB

    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


  6. #6
    Join Date
    Sep 2000
    Posts
    8

    Re: Creating Muti-threaded component in VB

    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


  7. #7
    Join Date
    Oct 2001
    Location
    Bangalore.INDIA
    Posts
    25

    Re: Creating Muti-threaded component in VB

    MULTITHREADING WONT WORK AS U EXPECT WITH VB 6.0
    tell me if u ever ever get a satisfing answer
    Regards


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured