1、QLibrary 加载普通 DLL

    //写清楚库的路径,如果放在当前工程的目录下,路径为./Oracle.so
    QLibrary *libOCI = new QLibrary("F:\\oracle\\product\\10.2.0\\db_1\\bin\\oci.dll");
    //加载动态库
    libOCI->load();
    if (!libOCI->isLoaded())
    {
        printf("Load Oracle oci.dll failed!\n");
        return 0;
    }

 

2、加载插件DLL

  2.1、(实际上是 添加插件DLL的路径)

QCoreApplication::addLibraryPath("F:\\plugins");

 

3、qt.conf 指定 普通DLL 和 插件DLL的 路径

 

4、

5、

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2021-05-16
  • 2021-05-04
  • 2022-12-23
  • 2022-02-09
  • 2022-02-02
  • 2021-07-23
相关资源
相似解决方案