Solved

How to call fortran program from vc++

Posted on 2004-03-23
8
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

627 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