We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug SerialPortInfoWinBase.cpp _T() cannot convert 'const char*' to 'LPCWSTR
SerialPortInfoWinBase.cpp:93:107: error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'LONG RegQueryValueExW(HKEY, LPCWSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD)'
RegQueryValueEx(hDevKey, _T("PortName"), NULL, NULL, (BYTE*)portName, &dwCount);
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
MinGW 4.9.2 (32-bit) file tchar.h
#ifdef _UNICODE ... #define __T(x) L##x ... #else ... #define __T(x) x ... #endif
but, QT defined UNICODE( not _UNICODE)
so, denfine _UNICODE can solve this problem
Sorry, something went wrong.
04c7bab
fixed #30 _T() cannot convert 'const char*' to 'LPCWSTR
45ede5b
Signed-off-by: itas109 <itas109@qq.com>
No branches or pull requests
Describe the bug
SerialPortInfoWinBase.cpp _T() cannot convert 'const char*' to 'LPCWSTR
SerialPortInfoWinBase.cpp:93:107: error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'LONG RegQueryValueExW(HKEY, LPCWSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD)'
RegQueryValueEx(hDevKey, _T("PortName"), NULL, NULL, (BYTE*)portName, &dwCount);
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: