?
Solved

Where is the output from my "printf "?

Posted on 2002-07-21
4
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.
Suggested Courses

764 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