views:

207

answers:

4

is it possible to create multitreading application in vc6 with boost library? If possible point to any relevant tutorials.

A: 

A quick google for "boost thread example" turns up lots of good hits.

Martin York
+2  A: 

Yes, I have done this successfully, but with Boost v1.30.0. So if you have trouble with the latest versions of the Boost libraries, you might want to go back a year or five. I recall I started getting all sorts of internal compiler errors, et al., when trying to upgrade Boost -- so I didn't, but rather went on using v1.30.0 until I was able to upgrade Visual C++ as well. Even the old versions of Boost are very stable and useful, they just have less features.

Pukku
A: 

The Boost.Thread library provides thead creation and manipulation facilities. Read the boost documentation (link was provided in litb's answer). It also provides synchronization bojects (mutexs). Boost is cross platform and is compatible with VS6.

As for the rest of the boost libraries - they are usually thread safe, but read the documentation of each particular library of details.

yoav.aviram
<p>There seems to be some confusion regarding whether the recent releases of boost support vc6 or not, e.g.: http://social.technet.microsoft.com/Forums/en-US/vcgeneral/thread/453ed2c8-c2c4-4497-9360-1978bdee0f7d</p><p>I guess this varies by library... Does anyone have a definitive answer?</p>
Pukku
Ok so comments don't support HTML... Here's a working link (I hope): http://social.technet.microsoft.com/Forums/en-US/vcgeneral/thread/453ed2c8-c2c4-4497-9360-1978bdee0f7d
Pukku