// threadhelper.cpp: Implementation of the threadhelper class.////
#include "threadhelper.h"
#include #include
Class A: Public Threadif {DWORD ThreadProc (Void * Param) {if (param) :: MessageBox (null, (char *) param, "threadhelper", mb_ok; else :: MessageBox (null, "a", "Threadhelper ", MB_OK); RETURN 0;}; public: a () {threadStart ();};
Void main () {threadif_ex aa; aa.threadstart ();
A abc; a b; abc.threadstart ("aaa"); abc.threadstart ("bbb");
Printf ("abc.count (thread (thread) =% d / r / n", abc.count ());
Printf ("press any key to exit / r / n"); getCh ();}