Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Windows 2003 Server DDK Hidd_GetHidGuid() segmentation fault
Forum Updated to NodeBB v4.3 + New Features

Windows 2003 Server DDK Hidd_GetHidGuid() segmentation fault

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 965 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stasi4ek
    wrote on last edited by
    #1

    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

    void MainWindow::on_StartButton_clicked()
    {
    GUID hidguid;
    HidD_GetHidGuid(&hidguid);
    }

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = test
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.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?

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      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.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stasi4ek
        wrote on last edited by
        #3

        [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?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved