[Plib-users] using plib with qt
Brought to you by:
sjbaker
From: Laura S. <moo...@gm...> - 2010-03-24 13:46:22
|
Hello, I like to use the Joystick library from Plib in a Qt Project. Up to now I used VC++ 6.0 with Plib and it works fine. Now I want to use it with Qt but don't know how. I do some changes to my .pro file: INCLUDEPATH = C:/plib-1.8.5/src/js C:/plib-1.8.5/src/util win32:LIBS += C:/plib-1.8.5/src/js/Debug/js_d.lib C:/plib-1.8.5/src/util/Debug/ul_d.lib and in main.cpp I do: #include <js.h> But when I compile then I get an error: ..\..\plib-1.8.5\src\util/ul.h:554: error: cannot convert 'char*' to 'const WCHAR*' for argument '1' to 'HINSTANCE__* LoadLibraryW(const WCHAR*)' I change line 554 in ul.h from: handle = (HMODULE) LoadLibrary ( dllname ) ; into: handle = (HMODULE) LoadLibrary ( (const WCHAR) dllname ) ; but this doesn't work too and I get 3 new errors. I don't know what to do more now. Can anybody help me getting plib run in my Qt project? Would be very nice. Best regards Laura -- GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.! http://portal.gmx.net/de/go/dsl02 |