打印本文 打印本文 关闭窗口 关闭窗口
插件管理框架 for Delphi(三)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2496  更新时间:2009/4/23 18:35:09  文章录入:mintao  责任编辑:mintao
 

{ 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] 

打印本文 打印本文 关闭窗口 关闭窗口