I need to access a dialog box from a thread outside of the dialog box class.
in portai.cpp, the thread is called like this:
m_pReaderThread = AfxBeginThread(ReaderThread, (LPVOID)this);
m_pReaderThread is declared like this in portai.h CWinThread* m_pReaderThread;
and the thread is declared as UINT CiPortAI::ReaderThread(LPVOID pThis)
I want to be able to update text boxes on my main dialog box from within the thread. How do I do this?