Running main() from a dialog-based control
Hi,
I'm a C++ newbie and have a liitle problem I hope someone can help me with here.
I have a Visual C++ project consisting of about 20 source files, one of which contains main(). I originally built a dialog-based application, and have no menus in the application. I am trying to run main(), by clicking on a Control button, "Analyze", inside the OnAnalyze() function.
From my understanding, main() is supposed to harness all my other source files and implement it. Now, I need to run main() from a control button, in my MFC application. The project compiles with no errors at present but I don't know how to run main() with the control button.
Or would it may be necessary to implement an instance of the control in main()?
Thaanks a lot in advance!
|