PDA

View Full Version : Winapi in Qt



Trok
19th July 2009, 16:12
Hi, I want using Winapi in Qt, but Qt environment don't allow me. When I added #include <windows.h> Qt didn't found it. So I add libraries manually, but it don't work correctly.
It's result after my test:
http://img169.imageshack.us/img169/2136/winapi.png (http://img169.imageshack.us/i/winapi.png/)
I suppose that lack some library files.
How can i solve it? Anyone know where can I download winapi libraries?

andy.fillebrown
19th July 2009, 16:38
The error pictured indicates a Unicode/ASCII issue which you can fix by prepending "AppClass" with an uppercase "L".

For example...


...

HWND hAppClient = 0;
hAppClient = FindWindow(L"AppClass", 0);

...