This example shows a call of AfxBeginThread that starts the worker thread and an example worker thread procedure for that thread.
// example simple thread procedure.
UINT __cdecl threadProc(LPVOID rawInput)
{
// convert it to the correct data type. It's common to pass entire structures this ...