CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 1999
    Location
    Bangalore
    Posts
    60

    how to implement multithreading in VB

    hi all

    can anyone tell me how to implement multithreading in VB.

    -venky


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: how to implement multithreading in VB

    Currently, VB does not support true multi-threading. You will have to wait for VB.Net However, there is a sample on http://www.Planet-Source-Code.com/vb that treats this symptom.
    Go there and search on "Weidmann" (without the quotes of course). One of the hits purportely does multi-threading. It has been given high marks from his peers. "Weidmann" is the Author

    John G

  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: how to implement multithreading in VB

    There is another way of implementing multithreading in VB - implement your process that you want multiple threads of as a stand alone EXE.
    As every executable resides on it's own thread you then have multi-threading. Interprocess communication can be a chore, but its your judgement call as to whether it's worth doing.

    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  4. #4
    Join Date
    Dec 1999
    Location
    Bangalore
    Posts
    60

    Re: how to implement multithreading in VB

    thanx..Its great.

    I used the class module for createthread and it worked fine.
    The only problem i had faced is when the my function finishes execution it don't know where to go back.
    Is this becoz he is creating the thread by passing function address by value not by reference ?
    I am doing this in WinNT.

    -venky


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