[Qt-interest] QString to TCHAR* and back

Duane Hebert spoo at flarn.com
Wed Feb 24 22:08:39 CET 2010


>It looks like your target function is not Unicode-safe. It expects ANSI data.

That was it.  I rebuilt the lib with Unicode turned on and now:

reinterpret_cast<const TCHAR* const>(portName.data())

works as you said.  Thanks for the tip.



More information about the Qt-interest-old mailing list