Solved

Where is the output from my "printf "?

Posted on 2002-07-21
4
207 Views
Last Modified: 2010-04-01
Hi

Im using Visual C++ to develop an app. Not using MFC. I need to pront out some data so Im using "printf". However I cant find where the output is going. I thought it would be the "results" window but nothing there.

Any ideas?
0
Comment
Question by:rangers99
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 7168564
What type is your project?
Is it Win32 Console or Win32 App?
0
 
LVL 30

Expert Comment

by:Axter
ID: 7168586
If your project is a Win32 Console application, then your printf output should appear on the console window.

0
 

Author Comment

by:rangers99
ID: 7168782
Axter

Its a win32 App.
0
 

Accepted Solution

by:
Sabnis earned 100 total points
ID: 7168938
change it to win32 console in project settings.....thats is   change /subsystem:windows to /subsystem:console or
if u want to maintain a win32 app
then go to project setting and redirect the output of the application to a text file : that is in program arguements give > myprintfoutput.txt
and u shall get the printf outputs there
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question