>>!!Advice: Avoid Casts!!<<

The winapi is a c-interface; if you're coding with it in c++ you'll be doing a lot of casting.

That aside, JaWiB's example provides the information you need; if you need the ThreadProc to be a member function of a C++ class then declare it as static.

If you spent a fraction of the time searching this board as you did on your sardonically obsequious first post you would have found lots of useful examples; for instance, this approach uses functors. This page provides an interesting approach, too, which demonstrates how flexible you can be with winapi function pointer types.

map.h is non-standard; use <map> instead. If your compiler complains about that then get another; dev-cpp(mingw) and msvc-express are free and very good. Alternatively, use a better stl implementation than that provided by your compiler - stlport, for example.

>>If someone could attempt to solve and compile my code to get it to work.<<

You'll need to post/attach a minimal example that replicates the problem; it may be that by constructing such an example and applying the information so far provided that you'll have sufficient understanding of the problem to solve it yourself.

Welcome to the boards.