CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    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.

  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    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.



    --
    Jason Teagle
    [email protected]

  3. #3
    Guest

    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


  4. #4
    Join Date
    Apr 1999
    Posts
    4

    Re: Please read and help

    Thanks Paul.
    I am just doing that.

    Murali.K
    Coastal Researcher.

  5. #5
    Join Date
    Apr 1999
    Location
    Chennai, India
    Posts
    48

    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
  •  





Click Here to Expand Forum to Full Width

Featured