Output from Console Application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JezB (jezbroadsword_at_blueyonder.co.uk)
Date: 09/03/04


Date: Fri, 3 Sep 2004 10:23:51 +0100

I'm compiling an old C program within Visual Studio to give me the
advantages of debugging within this environment. I'm building it as a
Console application using C++ as the language. It compiles and runs fine,
but if start debugging from within Visual Studio the standard output does
not seem to go anywhere. Standard output within my C program is via printf
commands. I dont want to start embedding Debug or Console statements since I
want the source to remain native C - I just want to compile and run it in
the visual studio environment.

How can I view the standard output within visual studio ? or how can I force
visual studio to run the program in a DOS window ?

The only way I can do what I want is to start the program in a dos window
then Attach to the process in visual studio, but this is not convenient as I
need to be able to step through the startup code.



Relevant Pages

  • Re: newbie question
    ... >> Now do I need Visual Studio .NET, ... > compiling without Visual Studio, ... > uses compiled DLLs with ASPX page templates. ... it passes it off the the HttpHandler for that type ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie question
    ... > Now do I need Visual Studio .NET, ... Visual Studio.Net provides you with all the latest debugging and compiling ... > that work like CGI or IIS extensions? ... compiled DLLs with ASPX page templates. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: app.config
    ... > I noticed that the app.config file wasn't being copied into the Debug ... > Debug directory when compiling... ... You're supposed to create a file named App.config in your Visual Studio ... Programname.exe.config in the output directory. ...
    (microsoft.public.dotnet.general)
  • re: Where is the STL.NET?
    ... Actually, you are not using STL.Net, just plain STL, which does not work with managed types. ... Nikola Dudar ... I'm using Visual Studio 2005 Professional, ... Compiling... ...
    (microsoft.public.dotnet.languages.vc)
  • Re: How do I Compile Password Filter
    ... I can't help with the compiling as I don't use Visual Studio. ... Bob Voss wrote:> I made a minor modification to the sample password filter from the SDK, ... I> installed Visual C++ from Visual Studio 6 but ended up using the command> line "nmake /f makefile" to compile it. ...
    (microsoft.public.security)