- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sure this is a FAQ if I knew where to look...
On Windows XP, using IVF 9.0 from a GUI application written in C++, where do the default logical units put their text? If I write
print *,...
where can I see the output? I don't see anything in the Visual Studio Output window, where debugging information goes. I tried running my app from the command line, and I still didn't see any output.
On Windows XP, using IVF 9.0 from a GUI application written in C++, where do the default logical units put their text? If I write
print *,...
where can I see the output? I don't see anything in the Visual Studio Output window, where debugging information goes. I tried running my app from the command line, and I still didn't see any output.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nowhere. You can call AllocConsole() API from either C++ or Fortran to create a console if there isn't one. Redirection to file will also work, but I don't think it can be specified in the command line while debugging (redirection using ">" is property of command-line interpreter rather than process itself).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav:
Thanks! I hadn't ever run across AllocConsole() because our application already has a way to show messages from C code.
As a logical follow-up, is there a way to connect a logical unit to a string? That would allow me to collect messages from my Fortran code and return it to the calling C++ code.
Thanks! I hadn't ever run across AllocConsole() because our application already has a way to show messages from C code.
As a logical follow-up, is there a way to connect a logical unit to a string? That would allow me to collect messages from my Fortran code and return it to the calling C++ code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't connect it to a string, but you can to a pipe, which can be read on C++ side (you might nead a separate thread or process if you want to read it and display interactively, as soon as it is written). I posted pipes.zip example here recently. This thread might also be interesting.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page