- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But I'd really like it to be run from inside a Perl script and have the output returned to Perl.
No problem , one just writes: $Out = `FortProg.Exe`;
But we get the Fortran console window popping up, which breaks the illusion that this is just one integrated program.
Is there some way to not have the Fortran program open up a console window?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can create a program with no console window by making it a "Windows application" with a WinMain entry point. But then you could not do console output. You could write to "standard output" which, if your script does it right, should be something it intercepts and reads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>> You can create a program with no console window by making it a "Windows application" with a WinMain entry point.
And you can add a command line option (-NoConsoleWindow) that if not present you make a call to AllocConsole() to create the console window. Then in your Pearl script add the -NoConsoleWindow option. (or -Quiet)
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, with AllocConsole you can choose to hide or display the console as you see fit once you determine the console's handle. This has been discuss several times on this forum and a (first) recourse to 'Search' should haul in previous posts dealing with the same issue.
This allows you to have legitimate write(*,*), print *, pause, etc. in Fortran code for old style debugging. The console functions like VB6's intermediate window to which one posts Debug.Print, the outcomes of Debug.Asserts, etc in debug mode but they are not displayed at run time even though the statements are retained in the code ready for the next round of debugging.
Gerry
OT
Does this BB rununder .Net? Lately it seems to me to being sluggish and hesitant in its performance.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page