JasonDBurke
Programmer
Hello,
My question has been posted in many various ways and I still haven't gotten an answer but i'm very persistent. I'm gonna try and generalize my problem and not get specific. Basically my issue deals around how Dialogs created by the App Wizard can communicate with regular .cpp files. I have a workspace with multiple dialogs and multiple .cpp files in a single project. I have a .cpp file that has a DWORD WINAPI Main(void *pParam)function call and does some threading. I would like to send the information gathered by this thread back to the dialog. How can I do this without any architectural changes to the project? I can extern variables in the .cpp declared in the dialog and send info back that way however since this .cpp is a threaded app i need to constantly send information back to be updated and a button on the dialog box doesn't solve this. Somebody suggested using a Singleton pattern however I fail to see how this will solve my problem.. Someone please help me put 2 and 2 together. Thanx,
Jason
My question has been posted in many various ways and I still haven't gotten an answer but i'm very persistent. I'm gonna try and generalize my problem and not get specific. Basically my issue deals around how Dialogs created by the App Wizard can communicate with regular .cpp files. I have a workspace with multiple dialogs and multiple .cpp files in a single project. I have a .cpp file that has a DWORD WINAPI Main(void *pParam)function call and does some threading. I would like to send the information gathered by this thread back to the dialog. How can I do this without any architectural changes to the project? I can extern variables in the .cpp declared in the dialog and send info back that way however since this .cpp is a threaded app i need to constantly send information back to be updated and a button on the dialog box doesn't solve this. Somebody suggested using a Singleton pattern however I fail to see how this will solve my problem.. Someone please help me put 2 and 2 together. Thanx,
Jason