Under VS’s external tools settings there is a ‘Use Output Window’ check box that captures the tools command line output and dumps it to a VS tab.
The question is: can I get the same processing for my program when I hit F5?
Edit: FWIW I’m in C# but if that makes a difference to your answer then it’s unlikely that your answer is what I’m looking for.
What I want would take the output stream of the program and transfer it to the output tab in VS using the same devices that output redirection (‘|’ and ‘>’) uses in the cmd prompt.
I’m going to make a few assumptions here. First, I presume that you are talking about printf output from an application (whether it be from a console app or from a windows GUI app). My second assumption is the C language.
To my knowledge, you cannot direct printf output to the output window in dev studio, not directly anyway. [emphasis added by OP]
There might be a way but I’m not aware of it. One thing that you could do though would be to direct printf function calls to your own routine which will
You could do several things to accomplish this goal. First would be to write your own printf function and then call printf and the OuputDebugString()
The code above is mostly untested, but it should get the concepts across.
If you are not doing this in C/C++, then this method won’t work for you. 🙂