Home > Software engineering >  AfxBeginThread return value problem and the thread class
AfxBeginThread return value problem and the thread class

Time:01-10


 CWinThread * pUIThread;//thread interface 
PUIThread=AfxBeginThread (RUNTIME_CLASS (CcbCopyFile));


My understanding is that AfxBeginThread returns a pointer to a base class, its parent class is CcbCopyFile?

CcbCopyFile, therefore, the class itself is used as base class, so, its structure and destructors are best protected
And its destructor must be vitual
I understand that right?

See AfxBeginThread concrete implementation is
  • Related