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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threading question VB

Status
Not open for further replies.

Kruzer

Programmer
Jun 16, 2000
117
US
Java developer needs help with VB 6 threading:

How effective is spawning threads in a vb.exe? Are there any good examples of creating timed threads? What is the syntax of creating a thread in VB? I have a socket listener that waits for a trigger var that kicks of a function that makes a call to active directory. I want to make sure I can spawn as many threads as needed in making the AD call.

Dano
dan_kryzer@hotmail.com
What's your major malfunction
 
Threading in VB6 is not very simple. The resident guru is strongm and you can see a sample of threading from him in thread222-519374.
 
I wouldn't attempt any multi-threading in VB6 -- you *can* get it to work, but the language isn't really set up for it.

Try VB.NET -- the .NET framework has excellent support for threading.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
You can use ActiveX Exe's to get a multi threading application. Such as put your port listener class in its own Single Use ActiveX EXE. When you instanse your class (most likely With Events) it gets its own thread (and process space) and can fire events back to your app.

Hope I've been helpful,
Wayne Francis

If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top