MFC Help;
-
I have this cd burning app that I have been working on. I added a dialog to show progress along the way. Now this dialog implements a interface and these methods are called during the burn. (These methods are callbacks that windows calls duriing the burn. So surely they are called from a different thread) I added some members to represent the controls on this dialog, 2 CStatics and a CProgressCtrl. I added the DDX_Control stuff. Now I know that I am not supposed to work with a control from different threads other than the one it was created with. If that is the case how do I set the window text and the progress step from these methods? Thank You Bo Hunter
-
I have this cd burning app that I have been working on. I added a dialog to show progress along the way. Now this dialog implements a interface and these methods are called during the burn. (These methods are callbacks that windows calls duriing the burn. So surely they are called from a different thread) I added some members to represent the controls on this dialog, 2 CStatics and a CProgressCtrl. I added the DDX_Control stuff. Now I know that I am not supposed to work with a control from different threads other than the one it was created with. If that is the case how do I set the window text and the progress step from these methods? Thank You Bo Hunter
Instead of executing the callback methods, you might want to consider posting messages to the dialog. The message indicates a "progress event". The dialog would query the CD burning thread for its progress, in response to the message. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com