- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm calling one applicationby RUNQQ. The application would provide some output to the console window.
Is there a way to restrict such output while the application is running?
Thank you.
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Notusing RUNQQ, but you can control it using CreateProcess. See this Steve's article on CreateProcess -- pay attention to DETACHED_PROCESS and/or CREATE_NEW_CONSOLE flags, as well as wShowWindow -> SW_HIDE (if you want to hide the other console completely).
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Say that I have a QuickWin application andopen two windows (unit 1 and 2). The program that is run by RUNQQ provides an output. The output is automatically directed into a standard console window. Is there a way to direct the output to one of the two QuickWin windows?
Thank you for your advice on this,
Milan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not with RUNQQ. You could do it with CreateProcess by sending the output to a "pipe" which you then read in a thread in the QuickWin application and wrote to the "terminal". Not difficult, but not trivial either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I askyou to write mea short code that would do this:
Say there is a standard fortran console .exelocated in a C directory. When run, it writes "hello world" to the screen.
I want to use theQuickWin application to run this .exe and write the output to the QuickWin window, say unit 1.
In my case, I can't determine exactly the length of lines and the number of lines that the .exe reports, butI want all output directed to the QuickWin window.
I very appreciateyour help,
Thank you,
Milan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, sorry, I won't be able to write you such code. Perhaps someone else is willing to offer.

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