View previous topic :: View next topic |
Author |
Message |
christyleomin
Joined: 08 Apr 2011 Posts: 155
|
Posted: Sun May 05, 2013 4:15 pm Post subject: FORTRAN dialogs / C++ |
|
|
Hi,
I will give you a short description regarding my University project and shall be grateful if you can provide me soem tips
1) I have got an existing FORTRAN Code
2) The existign FORTRAN Code creates some dialogs and consequently the data is retrived from these dialogs and the core numerical sub routines called and necessary calculations done.
3) So far so good.
Now,
4) We are replacing the existing FORTRAN Dialogs with C++ dialogs due to soem reasons (I'm not going into details and reasons for this)
5)I intend using the same FORTRAN Sub routines which carry out the calculations and call FORTRAN From C++ which I found is possible and have demonstarted some examples.
6) Can anyone provide me some tips and tell me how can I retrieve the C++ dialog data and give it to the FORTRAN code?
7) Currently I have commented the FORTRAN dialog craetion part in the subroutines and hard coded the necessary inputs from the C++ dialog.
Any tips will eb extremely useful.
Christy |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Sun May 05, 2013 4:50 pm Post subject: |
|
|
If you are using ClearWin+ in Fortran then, with some changes, you can use the same statements in C++. |
|
Back to top |
|
 |
christyleomin
Joined: 08 Apr 2011 Posts: 155
|
Posted: Mon May 06, 2013 10:05 am Post subject: |
|
|
I am not sure as I am not involved in C++ programming.
The code is like this:
Fortran
call CreatFortranDialog(a,b,c,...)
!!!WE get values of a,b,c
C++
call CreateC++Dialogs
//I getvalues of variables from C++ dialogs
Currently I have commented the CreateFortranDialog call in FORTRAN code and hard coded the values of a,b,c
I was thinking of calling a C++ routine where I have commented CreateFortranDialog andd getting the values of variables I need.
Any advise will be appreciated with gratefulness.
Paul, can you elaborate aout ClearWin+? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Mon May 06, 2013 6:57 pm Post subject: |
|
|
ClearWin+ is the Silverfrost graphical user interface used to create /output dialogues from Fortran or C++. |
|
Back to top |
|
 |
|