PDA

View Full Version : QString to LPCWSTR



bruccutler
1st May 2007, 15:12
I'm using MS Developer Studio and want to see the debug output (fprintf gets lost within MS Dev Studio).

I want to use OutputDebugString(), but it takes a LPCWSTR.

How do I convert from a QString to a LPCWSTR?
- brc

jacek
1st May 2007, 16:32
I'm using MS Developer Studio and want to see the debug output (fprintf gets lost within MS Dev Studio).
Then maybe you should try qDebug()?


How do I convert from a QString to a LPCWSTR?
Try QString::toWCharArray().