Reputation: 6083
Easy "unicode mode" compatible way to print text string like "TEST" to debug output in Visual Studio 2010?
I've seen some instructions pointing out that I need to change some settings to do this. But I need to stick with unicode for other reasons.
Upvotes: 1
Views: 476
Reputation: 179907
No biggie: OutputDebugStringW
does the conversion for you. So you can just print L"TEST"
, and it will convert it to "TEST"
for you.
Upvotes: 2