Click here to Skip to main content
12,748,244 members (40,385 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

30.4K views
22 bookmarked
Posted 18 Jul 2011

Good Old & Dirty printf() Debugging in a Non-console C/C++ Application or DLL

, 25 Jul 2012 CPOL
How to open a console in a non-console C/C++ application or DLL and make printf/scanf work (stdin/stdout/stderr related functions)

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

26 Jul 2011
Dave Cross
I just use OutputDebugString() and Sysinternals' DebugView.exe.
26 Jul 2011
Jaime Olivares
Plain old console output is still a valuable debugging tool, even when used in a GUI application.There are many tools here in CP that can be combined with console output like:CConsole - a simple console for debug output[^]Creating a console for your MFC app's debug output[^]You can use...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

pasztorpisti
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 25 Jul 2012
Article Copyright 2011 by pasztorpisti
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid