Reputation: 669
I am starting to do some work with the Windows API. However, I noticed that you can not use functions like printf if you have a windowed application. What is the standard way of printing debug and logging information? Sorry if this is an obvious question.
Upvotes: 4
Views: 1802
Reputation: 7353
I normally use OutputDebugString()
, the API is here. While running the application you can then view the output of this function with DebugView from SysInternals or in the Visual Studio output window while debugging.
Upvotes: 6
Reputation: 48019
Options:
Upvotes: 4