?
Solved

Where is the output from my "printf "?

Posted on 2002-07-21
4
Medium Priority
?
215 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

  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 …
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 video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

649 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