H
huawdg
Unregistered / Unconfirmed
GUEST, unregistred user!
FreeLibrary时,DLL没有响应事件,怎么回事?先谢了
DLL源码如下:
library Hello;
uses
SysUtils,Windows,Dialogs,
Classes;
{$R *.res}
procedure DLLEntryPoint(ReasonWord);
begin
case Reason of
DLL_PROCESS_ATTACH:ShowMessage('Attach');
DLL_PROCESS_DETACH:ShowMessage('Detach');//FreeLibrary时,这里执行不到
end;
end;
begin
DllProc:=@DLLEntryPoint;
DllEntryPoint(DLL_Process_Attach);
end.
DLL源码如下:
library Hello;
uses
SysUtils,Windows,Dialogs,
Classes;
{$R *.res}
procedure DLLEntryPoint(ReasonWord);
begin
case Reason of
DLL_PROCESS_ATTACH:ShowMessage('Attach');
DLL_PROCESS_DETACH:ShowMessage('Detach');//FreeLibrary时,这里执行不到
end;
end;
begin
DllProc:=@DLLEntryPoint;
DllEntryPoint(DLL_Process_Attach);
end.