I have faced a problem in Qt with error: cannot convert parameter 1 from ‘const char *’ to ‘LPCWSTR’
when calling: OutputDebugString( “wtf!” );
In simple C++ project I’ve always been setting “Character Set” to “Not Set”, but this time it doesn’t work, the error keeps displaying all the time. I tried other possibilities like “Use multi-byte” but still no effect. What’s going on?
Thanks.
I found out that when I use qDebug instead of OutputDebugString it works.