AppServer_TLB.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:6k
源码类别:

Delphi/CppBuilder

开发平台:

Delphi

  1. unit AppServer_TLB;
  2. // ************************************************************************ //
  3. // WARNING                                                                    
  4. // -------                                                                    
  5. // The types declared in this file were generated from data read from a       
  6. // Type Library. If this type library is explicitly or indirectly (via        
  7. // another type library referring to this type library) re-imported, or the   
  8. // 'Refresh' command of the Type Library Editor activated while editing the   
  9. // Type Library, the contents of this file will be regenerated and all        
  10. // manual modifications will be lost.                                         
  11. // ************************************************************************ //
  12. // PASTLWTR : $Revision:   1.130  $
  13. // File generated on 2002-2-25 21:26:57 from Type Library described below.
  14. // ************************************************************************  //
  15. // Type Lib: E:论文第七章 三层应用程序创建code7-1AppServer.tlb (1)
  16. // LIBID: {5D99CE2B-EED8-4437-9724-56F34786D641}
  17. // LCID: 0
  18. // Helpfile: 
  19. // DepndLst: 
  20. //   (1) v2.0 stdole, (D:WINNTSystem32stdole2.tlb)
  21. //   (2) v4.0 StdVCL, (D:WINNTSystem32stdvcl40.dll)
  22. //   (3) v1.0 Midas, (D:WINNTSystem32midas.dll)
  23. // ************************************************************************ //
  24. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
  25. {$WARN SYMBOL_PLATFORM OFF}
  26. {$WRITEABLECONST ON}
  27. interface
  28. uses ActiveX, Classes, Graphics, Midas, StdVCL, Variants, Windows;
  29.   
  30. // *********************************************************************//
  31. // GUIDS declared in the TypeLibrary. Following prefixes are used:        
  32. //   Type Libraries     : LIBID_xxxx                                      
  33. //   CoClasses          : CLASS_xxxx                                      
  34. //   DISPInterfaces     : DIID_xxxx                                       
  35. //   Non-DISP interfaces: IID_xxxx                                        
  36. // *********************************************************************//
  37. const
  38.   // TypeLibrary Major and minor versions
  39.   AppServerMajorVersion = 1;
  40.   AppServerMinorVersion = 0;
  41.   LIBID_AppServer: TGUID = '{5D99CE2B-EED8-4437-9724-56F34786D641}';
  42.   IID_IExamAppServer: TGUID = '{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}';
  43.   CLASS_ExamAppServer: TGUID = '{8724BF6F-A1F5-459F-92E8-A8DA26B23CD9}';
  44. type
  45. // *********************************************************************//
  46. // Forward declaration of types defined in TypeLibrary                    
  47. // *********************************************************************//
  48.   IExamAppServer = interface;
  49.   IExamAppServerDisp = dispinterface;
  50. // *********************************************************************//
  51. // Declaration of CoClasses defined in Type Library                       
  52. // (NOTE: Here we map each CoClass to its Default Interface)              
  53. // *********************************************************************//
  54.   ExamAppServer = IExamAppServer;
  55. // *********************************************************************//
  56. // Interface: IExamAppServer
  57. // Flags:     (4416) Dual OleAutomation Dispatchable
  58. // GUID:      {556C2782-F5CA-4785-ACAB-BB7CA2740BE1}
  59. // *********************************************************************//
  60.   IExamAppServer = interface(IAppServer)
  61.     ['{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}']
  62.   end;
  63. // *********************************************************************//
  64. // DispIntf:  IExamAppServerDisp
  65. // Flags:     (4416) Dual OleAutomation Dispatchable
  66. // GUID:      {556C2782-F5CA-4785-ACAB-BB7CA2740BE1}
  67. // *********************************************************************//
  68.   IExamAppServerDisp = dispinterface
  69.     ['{556C2782-F5CA-4785-ACAB-BB7CA2740BE1}']
  70.     function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
  71.                               MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  72.     function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
  73.                             Options: Integer; const CommandText: WideString; 
  74.                             var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
  75.     function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
  76.     function  AS_GetProviderNames: OleVariant; dispid 20000003;
  77.     function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
  78.     function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
  79.                             var OwnerData: OleVariant): OleVariant; dispid 20000005;
  80.     procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
  81.                          var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  82.   end;
  83. // *********************************************************************//
  84. // The Class CoExamAppServer provides a Create and CreateRemote method to          
  85. // create instances of the default interface IExamAppServer exposed by              
  86. // the CoClass ExamAppServer. The functions are intended to be used by             
  87. // clients wishing to automate the CoClass objects exposed by the         
  88. // server of this typelibrary.                                            
  89. // *********************************************************************//
  90.   CoExamAppServer = class
  91.     class function Create: IExamAppServer;
  92.     class function CreateRemote(const MachineName: string): IExamAppServer;
  93.   end;
  94. implementation
  95. uses ComObj;
  96. class function CoExamAppServer.Create: IExamAppServer;
  97. begin
  98.   Result := CreateComObject(CLASS_ExamAppServer) as IExamAppServer;
  99. end;
  100. class function CoExamAppServer.CreateRemote(const MachineName: string): IExamAppServer;
  101. begin
  102.   Result := CreateRemoteComObject(MachineName, CLASS_ExamAppServer) as IExamAppServer;
  103. end;
  104. end.