The Salford Fortran compiler (ftn95) supports option '/WINDOWS' which makes read and write statements go to the so called 'Output window' of the application generated - as opposed to the command window. We would like to use the functionality of the Salford output window for read/write statements in an application compiled with INTEL compiler ifort (64 bit version) and using Salford's clearwin64.dll for GUI input/output'.
Please look at the following application named hello.for:
integer*4 KI,KA
character*10 mychar
#IFNDEF INTEL64
KI=1
KA=2
#ELSE
KI=5
KA=6
#ENDIF
write(KA,'(A)') 'hello world: enter 1-10 characters'
read(KI,'(A10)') mychar
write(KA,'(A,A)') 'mychar=',mychar
end
Compiling it via Salford ftn95 command
ftn95 hello.for /link /CFPP /WINDOWS
makes the read and write statements go to the Salford output window.
Compiling it via INTEL ifort command
ifort hello.for /fpp /DINTEL64
makes the read and write statements go to the DOS command window the compiled application (hello.exe) has been started from. Now I would like to make all the read and write statements of the INTEL generated application go to a new output window (with functionality analogously to the Salford output window of the Salford generated application above).
Is this possible by means of Salford's cleawin64.dll? Which calls of clearwin64.dll would I use? I know in former times there were calls like create_window@, open_to_window@, set_default_window@ which could be used for this purpose, but I am in doubt if they are still supported by clearwind64.dll.
Thanks for any advice Diemar