user44556
user44556

Reputation: 6083

Print to debug output in VS2010 when Unicode mode is on

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

Answers (1)

MSalters
MSalters

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

Related Questions