Click to See Complete Forum and Search --> : Threading


hau tran
January 24th, 2000, 10:32 PM
Dear Code Guru,
I'm very new with Visual Basic so please be patient with me, thanks. I wonder if we can do threading in VB. If it's posssible, could you please show me how to do it in VB? What I am trying to do is displaying a dialog while compiling process of C++ programms is running on the background. I will be greatly appreciate for your invaluable helps. Thank you all in advance.

Does anyone know where I can look for Visual Studio documentation? Thanks again.

Lothar Haensler
January 25th, 2000, 01:07 AM
IMHO you don't need threading to do what you want.
You'll want to start a background process (via CreateProcess API) and wait for its end (via WaitForSingleObject API).
You don't need a thread to do that.

You could use a Timer object on your form and check on each timer event if WaitForSingleObject signals that the process has ended.

Still, if you want to create threads you can do that via CreateThread API.