SetDllDirectory设定DLL加载路径
#include "Windows.h"
//切换工作目录,到指定目录查找依赖的dll文件
QString s = "./debug";
LPCWSTR path = s.toStdWString().c_str();
SetDllDirectory(path);
SetDllDirectory设定DLL加载路径
#include "Windows.h"
//切换工作目录,到指定目录查找依赖的dll文件
QString s = "./debug";
LPCWSTR path = s.toStdWString().c_str();
SetDllDirectory(path);