Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29250 Discussions

***How to capture standard output when calling Intel Fortran DLL from VB.Net

calgarian
Beginner
406 Views
Hello,
i am trying to capture the output of the Fortran subroutine (in a DLL) from within VB.Net. The fortran subroutine that i am calling is printing to the standard output (eg. write(*,*) str ).
In VB.Net (2003) i tried redirecting the standard output to a file (please see code below). This only redirects the Console.WriteLine output, not the output coming from the fortran DLL (write).
i would greatly appreciate any help in this regard. please let me know if you have more questions.
Thanks very much.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

...

Console.SetOut(System.IO.File.AppendText("Log.txt"))

Console.WriteLine("console output")

Call DLL_CALC("par")

Console.Out.Flush()

...

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

0 Kudos
0 Replies
Reply