How can I use parameters in the AfxBeginThread-call used to start a CWintread derived class. I don't care if those parameter end up in the constructor or even in a derived 'operator new' function.
CThread : public CWinThread;
AfxBeginThread (RUNTIME_CLASS(CThread),Priority);
This calls both the new operator of my class as well as the constructor without any parameters.
Now I need to give some parameters to initialise my class.
CThread::CThread (HWND p_hPostWindow); // for example
or
void CThread:perator new (size_t p_nSize, HWND p_hPostWindow);
Hope someone can help me ...
CThread : public CWinThread;
AfxBeginThread (RUNTIME_CLASS(CThread),Priority);
This calls both the new operator of my class as well as the constructor without any parameters.
Now I need to give some parameters to initialise my class.
CThread::CThread (HWND p_hPostWindow); // for example
or
void CThread:perator new (size_t p_nSize, HWND p_hPostWindow);
Hope someone can help me ...