Re: AfxBeginThread on each user action X or re-use same thread (w CEve

Tech-Archive recommends: Fix windows errors by optimizing your registry



"ultranet" <ultranet@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8E2B9026-0B79-4847-A4B9-C4BB6F820344@xxxxxxxxxxxxx
> I'm not seeing
> isAlive() method in CWinThread

DWORD exitCode;
GetExitCodeThread(yourThread, &exitCode);
if (exitCode == STILL_ACTIVE)
{
// thread still alive
}

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.