Re: Fortran 90 and GUIs
- From: Gary Scott <garylscott@xxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2008 22:03:51 -0500
user1 wrote:
GaryScott wrote:Yes you could :) precisely matching my definition of "kludge".
On Jun 27, 11:51 am, brady.m.ad...@xxxxxxxxx wrote:
I have a Fortran program that I would like to implement a GUI with. In
doing a little reading around the net it seems that I will probably
want to call a different programming language such as C++, Java, or
Python. Starting out the GUI will be really simple: something like
"You are running blah blah blah. Continue?" --- with yes and no
buttons. If things go smoothly the GUI could get considerably more
complex.
My question: is this feasible? If so what would be the best language
to do this with? I know nothing about C, C++, or Java, but I know a
little Python. Or is there something else that would be better? Are
there any good books or online references on interfacing two different
languages (one of which being Fortran)?
Thank you!
Naw, by far the best solution is to use one of the many GUI builders
available for Fortran. There's even one semi-RAD tool. There are
free ones, $ ones, and $$$ ones. Mixed language programming is never
the best solution in my opinion, but it may be the cheapest since
there is so many free routes available. To me it's an extremely ugly
kludge.
Well, as far as kludges go, you could make the Fortran code take all of its input from and write all of its results to various files on disk. The GUI could be created with one of many free C++ toolkits ( qt, fltk, wxwidgets, ... ) and used to first create the needed input, then execute the fortran prog, then display the results.
--
Gary Scott
mailto:garylscott@sbcglobal dot net
Fortran Library: http://www.fortranlib.com
Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
If you want to do the impossible, don't hire an expert because he knows it can't be done.
-- Henry Ford
.
- References:
- Fortran 90 and GUIs
- From: brady . m . adams
- Re: Fortran 90 and GUIs
- From: GaryScott
- Re: Fortran 90 and GUIs
- From: user1
- Fortran 90 and GUIs
- Prev by Date: Re: Fortran 90 and GUIs
- Next by Date: Re: Is it time to legitimise REAL*8 etc?
- Previous by thread: Re: Fortran 90 and GUIs
- Next by thread: Re: Fortran 90 and GUIs
- Index(es):