16,215
社区成员
发帖
与我相关
我的任务
分享
#ifndef DLL_H
#define DLL_H
class __declspec(dllexport) Test
{
public:
void outPut();
};
#endif // DLL_H
#include "Dll.h"
#include <QDebug>
void Test::outPut()
{
qDebug() << "dll sucess!" << endl;
}
#ifndef DLL_H
#define DLL_H
class __declspec(dllimport) Test
{
public:
void outPut();
};
#endif // DLL_H
#include <QtCore/QCoreApplication>
#include "Dll.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
Test t;
t.outPut();
return a.exec();
}