Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to call fortran program from vc++

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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 …

715 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