Hi all,
I am using a dll, which takes a TCHAR and TCHAR*parameter in its functions.
and my GUI elements from QT are in the form of QString.
QT uses UTF-8 encoding which has (TCHAR as WCHAR)
I have been working since hours to figure out a way to convert a QString value to TCHAR / TCHAR*
have tried many forms and types..still no joy.
please can i get a code example to convert a QString value to TCHAR / TCHAR*
QString Value to TCHAR tValue
and QString Value to TCHAR* rValue
Thanks.
↧