S
ssjyr
Unregistered / Unconfirmed
GUEST, unregistred user!
如果一个Dll被动态调用两次,两次得到的地址(标识)都不同,可以吗?
代码如下:
DllHandle := LoadLibrary('Project2.dll');
ProcAddr := GetProcAddress(DllHandle, PChar('LoadDLL'));
if assigned(ProcAddr) then
begin
DllShow := ProcAddr;
DllShow(Handle, wm_user);
end;
代码如下:
DllHandle := LoadLibrary('Project2.dll');
ProcAddr := GetProcAddress(DllHandle, PChar('LoadDLL'));
if assigned(ProcAddr) then
begin
DllShow := ProcAddr;
DllShow(Handle, wm_user);
end;