0
点赞
收藏
分享

微信扫一扫

VC调用QT的UIDLL

星河出山 2022-05-19 阅读 129
//VC程序
#include "../QTDLL/ExportDll.h"

int _tmain(int argc, _TCHAR* argv[])
{
printf("%d",add(1));
return 0;
}


DLL

#include "stdafx.h"
#include "ExportDll.h"
#include "ui_DLG.h"
int add(int a)
{
QApplication ap(a,NULL);
QWidget* w = new QWidget();
Ui_Form s;
s.setupUi(w);
s.pushButton->winId()

w->show();
ap.exec();
return a+1;

}





举报

相关推荐

0 条评论