apostrophe27
asked on
Update dialog box from thread outside class
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(ReaderThrea
m_pReaderThread is declared like this in portai.h CWinThread* m_pReaderThread;
and the thread is declared as UINT CiPortAI::ReaderThread(LPV
I want to be able to update text boxes on my main dialog box from within the thread. How do I do this?
cast LPVOID pThis to the class from which it was called ()pThis
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent!
It worked, and I learned about worker threads. Thanks.
It worked, and I learned about worker threads. Thanks.