Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create multiThread program in VB 1

Status
Not open for further replies.

bharanikrishna

Programmer
Jun 1, 2001
3
IN
i want one multithread program in vb(any program)

please give me source code.

or

send project as attachment



Thanking you
Bharani Krishna
 
Sorry, but VB6 and below are not designed to work with a free threading model. They are designed to be single threaded. VB5 was able (with some tweaking and some luck) to use the CreateThread API, but Microsoft "fixed" that. Even whan it did work, it was not 100% reliable. You can play some tricks in VB to simulate multithreading, but there is no 100% reliable method to create free threads.
On the plus side however, VB.Net (due out this fall) will allow you to easily create free threads reliably. I have been using the Beta version of VB.Net, and the thread creation and manipulation seems to be working great.
I would suggest this . . . if you really need multithreading right now, go to C++. If you can wait for a few more months, then use VB.Net when it comes out.
- Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top