目录

多线程

CreateThread

1
m_AcountManageThread = CreateThread(NULL, NULL, ThreadProc, this, 0, NULL);//创建线程

AfxBeginThread (MFC专用)

1
2
//创建线程 大漠的DMInitThread
AfxBeginThread(DMInitThread, this, THREAD_PRIORITY_NORMAL, 0, 0, NULL);

_beginthreadex

1
m_hThreadHandle = (HANDLE)::_beginthreadex(NULL, 0, ThreadFunction, this, 0, &m_uThreadID);	//创建线程