Windows 2003 Server DDK Hidd_GetHidGuid() segmentation fault
Good day everyone!
I have a problem? that I couldn't resolve for 2 weeks.
I got a simple helloworld project with start button. Here is the code
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = test
TEMPLATE = app
SOURCES += main.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
INCLUDEPATH += c:/WinDDK/3790.1830/inc/ddk/wdm/wxp
LIBS += -LC:/WinDDK/3790.1830/lib/wxp/i386/
LIBS += -lhid
The project compiles via mingw, qtlibs 4.8.5
When I click start button, the executable falls with segmentation error. When I use debugger? It falls exactly when I enter HidD_GetHidGuid(&hidguid). What problem it may be?
It looks like you include a library, but do you also open the library first? Telling the pro file to look for a library is something different then really opening it.
[quote author="Jeroentje@home" date="1418030480"]Hi,
It looks like you include a library, but do you also open the library first? Telling the pro file to look for a library is something different then really opening it.[/quote]
So, how should I open library? What should I add to my pro file?