用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
694 B

#include "widget.h"
#include <QLibrary>
#ifndef QT_NO_DEBUG
#include <QDebug>
#endif
Widget::Widget(QWidget *parent) :
QWidget(parent)
{
// dll显式加载,只需要dll文件即可,不需要.h和.lib文件
// 需要将dll放到可执行目录中
typedef void(*ScreenShortFunc)(void);
QLibrary lib("OEScreenshot.dll");
if (lib.load()) {
#ifndef QT_NO_DEBUG
qDebug() << "load ok!";
#endif
ScreenShortFunc f = (ScreenShortFunc)lib.resolve("OEScreenshot");
if (f) {
#ifndef QT_NO_DEBUG
qDebug() << "load ScreenShortFunc ok!";
#endif
f();
}
} else {
#ifndef QT_NO_DEBUG
qDebug() << "load error!";
#endif
}
}
Widget::~Widget()
{
}