AppServer_TLB.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:6k
源码类别:
Delphi/CppBuilder
开发平台:
Delphi
- unit AppServer_TLB;
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
- // PASTLWTR : $Revision: 1.130 $
- // File generated on 2002-2-25 21:26:57 from Type Library described below.
- // ************************************************************************ //
- // Type Lib: E:论文第七章 三层应用程序创建code7-1AppServer.tlb (1)
- // LIBID: {5D99CE2B-EED8-4437-9724-56F34786D641}
- // LCID: 0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (D:WINNTSystem32stdole2.tlb)
- // (2) v4.0 StdVCL, (D:WINNTSystem32stdvcl40.dll)
- // (3) v1.0 Midas, (D:WINNTSystem32midas.dll)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- interface
- uses ActiveX, Classes, Graphics, Midas, StdVCL, Variants, Windows;
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- AppServerMajorVersion = 1;
- AppServerMinorVersion = 0;
- LIBID_AppServer: TGUID = '{5D99CE2B-EED8-4437-9724-56F34786D641}';
- IID_IExamAppServer: TGUID = '{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}';
- CLASS_ExamAppServer: TGUID = '{8724BF6F-A1F5-459F-92E8-A8DA26B23CD9}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IExamAppServer = interface;
- IExamAppServerDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- ExamAppServer = IExamAppServer;
- // *********************************************************************//
- // Interface: IExamAppServer
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {556C2782-F5CA-4785-ACAB-BB7CA2740BE1}
- // *********************************************************************//
- IExamAppServer = interface(IAppServer)
- ['{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}']
- end;
- // *********************************************************************//
- // DispIntf: IExamAppServerDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {556C2782-F5CA-4785-ACAB-BB7CA2740BE1}
- // *********************************************************************//
- IExamAppServerDisp = dispinterface
- ['{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}']
- function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant;
- MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
- function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
- Options: Integer; const CommandText: WideString;
- var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
- function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
- function AS_GetProviderNames: OleVariant; dispid 20000003;
- function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
- function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
- var OwnerData: OleVariant): OleVariant; dispid 20000005;
- procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
- var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
- end;
- // *********************************************************************//
- // The Class CoExamAppServer provides a Create and CreateRemote method to
- // create instances of the default interface IExamAppServer exposed by
- // the CoClass ExamAppServer. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoExamAppServer = class
- class function Create: IExamAppServer;
- class function CreateRemote(const MachineName: string): IExamAppServer;
- end;
- implementation
- uses ComObj;
- class function CoExamAppServer.Create: IExamAppServer;
- begin
- Result := CreateComObject(CLASS_ExamAppServer) as IExamAppServer;
- end;
- class function CoExamAppServer.CreateRemote(const MachineName: string): IExamAppServer;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_ExamAppServer) as IExamAppServer;
- end;
- end.