|
-
April 22nd, 1999, 10:30 PM
#1
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.
-
April 23rd, 1999, 02:41 AM
#2
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.
-
April 29th, 1999, 03:07 AM
#3
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
-
April 29th, 1999, 03:41 AM
#4
Re: Please read and help
Thanks Paul.
I am just doing that.
Murali.K
Coastal Researcher.
-
April 29th, 1999, 06:09 AM
#5
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 !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|