class MyClass
{
DWORD WINAPI StartThread (void* Param)
{
MyClass* This = (MyClass*) Param;
return This->ThreadStart();
}
DWORD ThreadStart(void)
{
// Do stuff
}
void StartMyThread()
{
CreateThread(NULL, 0, StartThread, (void*) this, 0, NULL);
}
};