Click to See Complete Forum and Search --> : Please read and help


muralic
April 22nd, 1999, 10:30 PM
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.

Jason Teagle
April 23rd, 1999, 02:41 AM
Make the 'scientific problem' code into a DLL, then you can get the UI to link to it and access the required functions.

April 29th, 1999, 03:07 AM
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

muralic
April 29th, 1999, 03:41 AM
Thanks Paul.
I am just doing that.

Murali.K
Coastal Researcher.

rajasekar.s
April 29th, 1999, 06:09 AM
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 !