But if CThread knows when a thread exits, then there must be a way to make your own CThread-like class without having to use evil MFC.
That was the point. Make your own class.
But MFC isn't evil...
And killing a thread (not ending them from within a thread) is a bad thing(TM).
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.