經安全檢測,此網站為安全網站,請放心前往原始網址!

A C++ Thread Class - CodeProject - CodeProject - For those who code

Hi Jesse ! This is very simple: in file "Thread.h" you can see this declaration: virtual DWORD Run() {_ASSERTE(false); // must override this /* // Sample thread code... while( !ShouldStop() ) {...} */ return 0;} So all you need to do is to derive from CTh

www.codeproject.com

網址安全性掃描由 google 提供