Solved

How to call fortran program from vc++

Posted on 2004-03-23
8
175 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 65
groupNoAdj 7 105
Interview question Javascript, database 12 82
Bartender label printing - switch on and off graphics 3 54
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

830 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