[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Where is the output from my "printf "?

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
rangers99
Asked:
rangers99
  • 2
1 Solution
 
AxterCommented:
What type is your project?
Is it Win32 Console or Win32 App?
0
 
AxterCommented:
If your project is a Win32 Console application, then your printf output should appear on the console window.

0
 
rangers99Author Commented:
Axter

Its a win32 App.
0
 
SabnisCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now