Qt 6.11 is out! See what's new in the release
blog
[Solved] Win32 API hook implemenation problem.
General and Desktop
3
Posts
2
Posters
4.2k
Views
1
Watching
-
Dear all,
I write an application to use with win32 keyboard hook implementation in pure Qt not using external dll.
I face a problem with GetKeyState function. In Visual Studio, it can achieve with like that@BYTE keys[256];
GetKeyboardState(keys); //WINUSERAPI SHORT WINAPI GetKeyState(int); @But when I try it in Qt, return error like that,
@BYTE keys;
keys = new BYTE[256];
GetKeyState(keys);
// error: invalid conversion from 'BYTE' to 'int'@Is GetKeyState(int) need to examine all 256 keys?
How can I solve that problem?Thanks