how do i read the contents of the edit box when the thread is getting executed.i am not able to use the member variable of the edit box which i have created,its popping an error. plz help
Printable View
how do i read the contents of the edit box when the thread is getting executed.i am not able to use the member variable of the edit box which i have created,its popping an error. plz help
1. Why do you think you need to "read the contents of the edit box when the thread is getting executed"? How often do you need to do it?
2. I already gave you a link to a very useful essay about using worker threads here. Have you read it (the essay)?
Windows is a message-oriented operating system, so you don't need a separate thread for doing that. Whenever a button is pressed, a message will be sent that you can handle. Preferably with message maps if you're using MFC.
https://msdn.microsoft.com/en-us/library/6d1asasd.aspx
As said in one of your other threads, do not access the UI from worker threads, only from the main thread.