高分求教,Qt如何加载调用win32程序编译的DL
答案:1 悬赏:0 手机版
解决时间 2021-04-02 03:28
- 提问者网友:不爱我么
- 2021-04-01 16:37
高分求教,Qt如何加载调用win32程序编译的DL
最佳答案
- 五星知识达人网友:污到你湿
- 2021-04-01 17:45
typedef AAAAObj *(*CreateAAAAObj)();
{
QLibrary *AAAA = new QLibrary("AAAA.dll");
CreateDevice pfCreateAAAA;
if(AAAA->load()){
pfCreateAAAA = (CreateAAAAObj)AAAA->resolve("CreateDevice"); //调用dll的构建函数
if(pfCreateAAAA){
AAAAObj *aaaaa = pfCreateAAAA();
}
}
}
{
QLibrary *AAAA = new QLibrary("AAAA.dll");
CreateDevice pfCreateAAAA;
if(AAAA->load()){
pfCreateAAAA = (CreateAAAAObj)AAAA->resolve("CreateDevice"); //调用dll的构建函数
if(pfCreateAAAA){
AAAAObj *aaaaa = pfCreateAAAA();
}
}
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯