The easiest way is to download the boost C++ library from www.boost.org and use their Thread class, which is brain-
dead simple. It hides all the intricacies of messing with
native windows threads. Follow the documentation on how
to install and build boost, then look at the five or so
short examples that are provided with the Thread portion
of the boost library.