-
- TextOut( dc, x, y, aText.toLatin1().constData(), aText.length() );
+#ifdef UNICODE
+ LPTSTR str = new TCHAR[aText.length() + 1];
+ str[aText.toWCharArray(str)] = '\0';
+#else
+ QByteArray arr = FileName.toLatin1();
+ LPTSTR str = arr.constData();
+#endif
+ TextOut( dc, x, y, str, aText.length() );
+#ifdef UNICODE
+ delete str;
+#endif