标签:har prototype char tle 必须 user dll auto message
qt加载dll时 dll与qt项目编译器必须是同一个。 const char* temp = "D:\\Users\\pautoenr.dll";
//HINSTANCE hDLL = LoadLibrary(L"D:\\Users\\myrootkit.dll");
QLibrary myLib("D:\\Users\\myrootkit.dll");
MyPrototype myFunction = (MyPrototype)myLib.resolve("Min");
if (myFunction)
int q=myFunction(1,2);
//if (!myLib)
//{
// QMessageBox::warning(0, "Title", "Error Message");
//}
标签:har prototype char tle 必须 user dll auto message
原文地址:http://blog.51cto.com/haidragon/2319125