inline QString MotorCS2QS(CString cs) { return QString::fromWCharArray((LPCTSTR)cs, cs.GetLength()); }inline CString MotorQS2CS(QString qs){QByteArray cdata = qs.toLocal8Bit();return CString(cdata);} char * TcharToChar(const TCHAR * tchar){ //char *…