【发布时间】:2013-06-24 00:29:47
【问题描述】:
假设我有一个包含以下内容的 DLL 权限:
//DLL
class foo {
static __declspec int Add(int a, int b)
{
return a+b
}
}
如何调用 GetProc 地址?即:
HINSTANCE hFoo = LoadLibrary("Foo.dll");
int* proc = NULL;
proc = (int*) GetProcAddress(hFoo, ??????);
//Main Exec linked to dll
究竟如何使用 GetProcAddress 获取在 dll 中创建的类的地址?
【问题讨论】: