home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue39 / construc / dbserver_tlb.pas next >
Encoding:
Pascal/Delphi Source File  |  1998-10-06  |  4.3 KB  |  97 lines

  1. unit DbServer_TLB;
  2.  
  3. // ************************************************************************ //
  4. // WARNING                                                                  //
  5. // -------                                                                  //
  6. // The types declared in this file were generated from data read from a     //
  7. // Type Library. If this type library is explicitly or indirectly (via      //
  8. // another type library referring to this type library) re-imported, or the //
  9. // 'Refresh' command of the Type Library Editor activated while editing the //
  10. // Type Library, the contents of this file will be regenerated and all      //
  11. // manual modifications will be lost.                                       //
  12. // ************************************************************************ //
  13.  
  14. // PASTLWTR : $Revision:   1.11.1.63.1.0.1.0  $
  15. // File generated on 10/6/98 3:41:25 PM from Type Library described below.
  16.  
  17. // ************************************************************************ //
  18. // Type Lib: C:\USR\BOB\MAGAZINE\DELPHI.MAG\#39\src\DbServer.tlb
  19. // IID\LCID: {C4C61521-5D0E-11D2-85BA-000000000000}\0
  20. // Helpfile: 
  21. // HelpString: DbServer Library
  22. // Version:    1.0
  23. // ************************************************************************ //
  24.  
  25. interface
  26.  
  27. uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
  28.  
  29. // *********************************************************************//
  30. // GUIDS declared in the TypeLibrary. Following prefixes are used:      //
  31. //   Type Libraries     : LIBID_xxxx                                    //
  32. //   CoClasses          : CLASS_xxxx                                    //
  33. //   DISPInterfaces     : DIID_xxxx                                     //
  34. //   Non-DISP interfaces: IID_xxxx                                      //
  35. // *********************************************************************//
  36. const
  37.   LIBID_DbServer: TGUID = '{C4C61521-5D0E-11D2-85BA-000000000000}';
  38.   IID_IVisitorTracking: TGUID = '{C4C61522-5D0E-11D2-85BA-000000000000}';
  39.   CLASS_VisitorTracking: TGUID = '{C4C61524-5D0E-11D2-85BA-000000000000}';
  40. type
  41.  
  42. // *********************************************************************//
  43. // Forward declaration of interfaces defined in Type Library            //
  44. // *********************************************************************//
  45.   IVisitorTracking = interface;
  46.   IVisitorTrackingDisp = dispinterface;
  47.  
  48. // *********************************************************************//
  49. // Declaration of CoClasses defined in Type Library                     //
  50. // (NOTE: Here we map each CoClass to its Default Interface)            //
  51. // *********************************************************************//
  52.   VisitorTracking = IVisitorTracking;
  53.  
  54.  
  55. // *********************************************************************//
  56. // Interface: IVisitorTracking
  57. // Flags:     (4416) Dual OleAutomation Dispatchable
  58. // GUID:      {C4C61522-5D0E-11D2-85BA-000000000000}
  59. // *********************************************************************//
  60.   IVisitorTracking = interface(IDataBroker)
  61.     ['{C4C61522-5D0E-11D2-85BA-000000000000}']
  62.     function Get_Provider1: IProvider; safecall;
  63.     property Provider1: IProvider read Get_Provider1;
  64.   end;
  65.  
  66. // *********************************************************************//
  67. // DispIntf:  IVisitorTrackingDisp
  68. // Flags:     (4416) Dual OleAutomation Dispatchable
  69. // GUID:      {C4C61522-5D0E-11D2-85BA-000000000000}
  70. // *********************************************************************//
  71.   IVisitorTrackingDisp = dispinterface
  72.     ['{C4C61522-5D0E-11D2-85BA-000000000000}']
  73.     property Provider1: IProvider readonly dispid 1;
  74.     function GetProviderNames: OleVariant; dispid 22929905;
  75.   end;
  76.  
  77.   CoVisitorTracking = class
  78.     class function Create: IVisitorTracking;
  79.     class function CreateRemote(const MachineName: string): IVisitorTracking;
  80.   end;
  81.  
  82. implementation
  83.  
  84. uses ComObj;
  85.  
  86. class function CoVisitorTracking.Create: IVisitorTracking;
  87. begin
  88.   Result := CreateComObject(CLASS_VisitorTracking) as IVisitorTracking;
  89. end;
  90.  
  91. class function CoVisitorTracking.CreateRemote(const MachineName: string): IVisitorTracking;
  92. begin
  93.   Result := CreateRemoteComObject(MachineName, CLASS_VisitorTracking) as IVisitorTracking;
  94. end;
  95.  
  96. end.
  97.