Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to call fortran program from vc++

Posted on 2004-03-23
8
Medium Priority
?
203 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 45

Accepted Solution

by:
AndyAinscow earned 500 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 45

Expert Comment

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

Expert Comment

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

971 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