I absolutely need to create a new thread, and the starting procedure has to be a non-static class member function. Is that possible? I get "error C2664: '_beginthread' : cannot convert parameter 1 from 'void (void *)' to 'void (__cdecl *)(void *)'" which is natural because "this" pointer is also passed to all non-static members...
The method has to be non-static for two reasons: a) I may need several instances of the class in question; b) making this method static will force to make some fields static too, and static variables have a very limited scope - file.
Anybody can suggest anything?
The method has to be non-static for two reasons: a) I may need several instances of the class in question; b) making this method static will force to make some fields static too, and static variables have a very limited scope - file.
Anybody can suggest anything?