I would like to create a new thread with the MFC in Visual Studio, and transfer data of this created thread to my main projectprogram. I can create a new thread with AfxBeginThread(AFX_THREADPROC ThreadProc,....) and I can do something in the TreadProc(function) but to transfer data ????