I do not see why you would want to call main().
To explain.
Main is the common name for the entry point of a program. The entry point is the place where execution starts. It is used by the OS and the Runtime to start and run your program. Calling it your self is at best very risky and worst a disaster. Do Not Try. Further since your application is written with the MFC you should not even have a main in your source. It is implemented within the MFC and needs to be inorder for the MFC to do its thing.
Another thing to note is that the name main is not a must. It is defined in the build settings of your compiler and when using the MFC is acctually called something like WinMainCRTStartup.
You should move the functionaly of your main function to something with a less confusing name and call that from OnAnalyze()
|