Solved

How to call fortran program from vc++

Posted on 2004-03-23
8
168 Views
Last Modified: 2013-11-20
Sir
I had one program which has written in fortran .I would like to call this program from vc++.Please let me know some solution for this one.
 I hope that  i can get it as early as possible.


                                                 P.V.Ramesh
0
Comment
Question by:ven_ramesh81
  • 4
8 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 125 total points
ID: 10664951
     STARTUPINFO si;
      memset(&si, 0, sizeof(si));
      si.cb = sizeof(si);
      si.dwFlags = STARTF_USESHOWWINDOW;

      PROCESS_INFORMATION pi;

      si.wShowWindow = SW_SHOWMAXIMIZED;
      CreateProcess(NULL,
                  "INSERT PATH TO FORTRAN APP HERE",
                  NULL, NULL, FALSE,
                  CREATE_DEFAULT_ERROR_MODE | NORMAL_PRIORITY_CLASS, NULL, szLocal, &si, &pi);
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 10676601
How are you getting on?
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11850843
My comment would be a way to achieve the desired effect
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 12004046
?
What other questions/comments.

this is all I see
Sir
I had one program which has written in fortran .I would like to call this program from vc++.Please let me know some solution for this one.
 I hope that  i can get it as early as possible.


                                                 P.V.Ramesh

and CreateProcess would be suitable method to accomplish this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now