// ThreadHelper.cpp: implementation of the ThreadHelper class.
//
//
#include "ThreadHelper.h"
#include <stdio.h>
#include <conio.h>
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) = %d/r/n", abc.count());
printf("press any key to exit/r/n");
getch();
}