Solved

Where is the output from my "printf "?

Posted on 2002-07-21
4
203 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now