#ifdef Q_OS_WIN
typedef long ( *SHELLRUN)(long,const char*, const char*, const char* ,const char* , int );
SHELLRUN test;
QString str = "shell32.dll";
QLibrary lib(str);
test = (SHELLRUN)lib.resolve("ShellExecuteA");
const char * te = "open";
const char * te1 = ".\\help\\Guide.hlp";
test(NULL,te,te1,NULL,NULL,5);
lib.unload();
#endif
Qt 动态加载 dll
最新推荐文章于 2024-01-11 16:37:51 发布