Вечер добрый. Возникла проблема с импортом функций из dll'ки. 
Имеем библиотеку AtUsbHID.dll, скрин документации прилагается.
Вылетает segfault на findHidDevice(VID, PID).
#include <QtCore/QCoreApplication>
#include <QTextStream>
#include <QLibrary>
 
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QLibrary lib("AtUsbHid.dll");
    QTextStream cout(stdout);
 
    unsigned int VID = 0x0583;
    unsigned int PID = 0xB031;
 
    if (!lib.load()) {
        cout << "Error" << endl;
    } else cout << "Library loaded." << endl;
 
    typedef bool (*MyPrototype)(unsigned int, unsigned int);
    MyPrototype findHidDevice = (MyPrototype) lib.resolve("findHidDevice");
 
    if (findHidDevice) {
        cout << "Function \"findHidDevice\" loaded!" << endl;
        if (findHidDevice(VID, PID))
            cout << "Work it!" << endl;
    }
 
    cout << "End." << endl;
    return a.exec();
}

PS Мог ошибиться разделом