|
{ TServerDll }
procedure TServerDll.DoDllLoaded;
begin
FQueryInterface := GetProcAddress(csQueryInterface);
if not Assigned(FQueryInterface) then
raise EServerDllError.Create(''''No found of "QueryInterface" Proc.'''');
inherited; //此句需要放在后面
end;
procedure TServerDll.DoDllUnLoaded;
begin
inherited;
FQueryInterface := nil;
end;
procedure TServerDll.RefreshAllFunctionsPermit;
var
I: Integer;
begin
Assert(FFunctions <> nil);
for I := 0 to TFunctionList(FFunctions).Count - 1 do
if TFunction(TFunctionList(FFunctions)[I]).Dll = Self then
TFunction(TFunctionList(FFunctions)[I]).Permit := Permit;
end;
end.
3.3.2 组件使用
略。
[文终]
上一页 [1] [2] [3] |