AppServerDM.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:1k
- unit AppServerDM;
- {$WARN SYMBOL_PLATFORM OFF}
- interface
- uses
- Windows, Messages, SysUtils, Classes, ComServ, ComObj, VCLCom, DataBkr,
- DBClient, AppServer_TLB, StdVcl, DB, DBTables, Provider;
- type
- TExamAppServer = class(TRemoteDataModule, IExamAppServer)
- Database1: TDatabase;
- Query1: TQuery;
- DataSetProvider1: TDataSetProvider;
- private
- { Private declarations }
- protected
- class procedure UpdateRegistry(Register: Boolean; const ClassID, ProgID: string); override;
- public
- { Public declarations }
- end;
- implementation
- {$R *.DFM}
- class procedure TExamAppServer.UpdateRegistry(Register: Boolean; const ClassID, ProgID: string);
- begin
- if Register then
- begin
- inherited UpdateRegistry(Register, ClassID, ProgID);
- EnableSocketTransport(ClassID);
- EnableWebTransport(ClassID);
- end else
- begin
- DisableSocketTransport(ClassID);
- DisableWebTransport(ClassID);
- inherited UpdateRegistry(Register, ClassID, ProgID);
- end;
- end;
- initialization
- TComponentFactory.Create(ComServer, TExamAppServer,
- Class_ExamAppServer, ciMultiInstance, tmApartment);
- end.