Hi,
I creating c/c++ mfc application, in one class i have worker thread that
searching some string in the file and in another UI thread displaying
results on the CListBox, and that it`s ok on the emulator ppc 2002 but when
i transfer ARM executive on real device threads won`t start, the way i
started the threads are like this:
//global
HANDLE hWorkerThread;
CSearchRes *g_searchRes; // in constructor of CSearchRes "g_searchRes =
this;"
//member of the CSearchRes class
CWinThread* m_pThread;
UINT WorkerThreadProc( LPVOID Param )
{
...
g_searchRes->m_pThread->PostThreadMessage(WM_MYTHREADMESSAGE,left,right);
}
BOOL CSearchRes::OnInitDialog()
{
...
hWorkerThread =
AfxBeginThread(WorkerThreadProc,NULL,THREAD_PRIORITY_NORMAL,0,0,NULL);
m_pThread = new CMyThread();
m_pThread->CreateThread();
...
}
Tnx.