When you say:
//to find a better way for this...
while(lpdbv->dbcc_name[i] != 0)
{
s.append(lpdbv->dbcc_name[i]);
i++;
}
s = s.toUpper();
QString s;
//to find a better way for this...
while(lpdbv->dbcc_name[i] != 0)
{
s.append(lpdbv->dbcc_name[i]);
i++;
}
s = s.toUpper();
To copy to clipboard, switch view to plain text mode
Have you tried:
QString s = QString::fromWCharArray(lpdbv->dbcc_name).toUpper();
To copy to clipboard, switch view to plain text mode
Don't know if it'll work, it's just something that sprung into mind when I read your code/comment.
Bookmarks