-
Please read and help
Hi!
I need help in adding my source code to a MFC UI front end. I have a huge source code
of a scientific problem in C++. The source code includes a main.c. I want to run this
application or link this applicaiton to an MFC UI. Can anybody suggest me how to do
it?
Thanks.
Murali
Murali.K
Coastal Researcher.
Murali.K
Coastal Researcher.
-
Re: Please read and help
Make the 'scientific problem' code into a DLL, then you can get the UI to link to it and access the required functions.
-
Re: Please read and help
Rewrite the main() procedure (probably is mainly command line processing anyway), and just link in the rest of the code. If you want to keep the projects separate, make a VC project to produce a .lib file from the scientific stuff, then link your MFC exe to the lib file.
CHeers,
Paul
-
Re: Please read and help
Thanks Paul.
I am just doing that.
Murali.K
Coastal Researcher.
-
Re: Please read and help
hi ,
Becareful about the printfs and scanfs that have been used in your program ! If the calculation is pretty long, and will take some time do, take care of handling it as a seperate thread than handling it in a message handler.
Have a nice time !