View Single Post
  #1 (permalink)  
Old November 13th, 2004, 03:27 PM
aaadetos aaadetos is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
Reply With Quote