說我有一個包含這個DLL右:你可以動態調用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創建類的地址?
+1分享:) –
什麼是「_ZN7MathDLL5MathX3ADDEdd」? – Rida