Printing Debug Output in Windows Programs

I am starting to work with the Windows API. However, I noticed that you cannot use functions such as printf if you have a windowed application. What is the standard way to print debugging and logging information? Sorry if this is an obvious question.

+4
source share
2 answers

I usually use OutputDebugString() , the API here . During application startup, you can view the results of this function using DebugView from SysInternals or in the Visual Studio output window during debugging.

+6
source

Options:

+4
source

All Articles