假设未卸载并重新加载库,指向库中函数的函数地址是否会在整个执行时间内保持不变?
HMODULE hm = LoadLibrary("SomeLibrary.dll");
SomeFunction fn = (SomeFunction)GetProcAddress(hm, "SomeFunction");
fn(arg1, arg2); // is fn valid for whole execution time?
答案 0 :(得分:4)
假设未卸载并重新加载库,指向库中函数的函数地址是否会在整个执行时间内保持不变?
是