home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Database / ejemplos / controlusu / Pserver1_TLB.~pa < prev    next >
Encoding:
Text File  |  1999-04-10  |  5.3 KB  |  133 lines

  1. unit Pserver1_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  $
  15. // File generated on 10/04/99 9:24:13 from Type Library described below.
  16.  
  17. // ************************************************************************ //
  18. // Type Lib: D:\conferen\controlusu\Pserver1.tlb
  19. // IID\LCID: {DBD49CA0-0399-11D3-9629-0000E85E7443}\0
  20. // Helpfile: 
  21. // HelpString: Pserver1 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_Pserver1: TGUID = '{DBD49CA0-0399-11D3-9629-0000E85E7443}';
  38.   IID_Icontrolusu: TGUID = '{DBD49CA1-0399-11D3-9629-0000E85E7443}';
  39.   CLASS_controlusu: TGUID = '{DBD49CA3-0399-11D3-9629-0000E85E7443}';
  40.   IID_Iddd: TGUID = '{DBD49CCE-0399-11D3-9629-0000E85E7443}';
  41.   CLASS_ddd: TGUID = '{DBD49CD0-0399-11D3-9629-0000E85E7443}';
  42. type
  43.  
  44. // *********************************************************************//
  45. // Forward declaration of interfaces defined in Type Library            //
  46. // *********************************************************************//
  47.   Icontrolusu = interface;
  48.   IcontrolusuDisp = dispinterface;
  49.   Iddd = interface;
  50.   IdddDisp = dispinterface;
  51.  
  52. // *********************************************************************//
  53. // Declaration of CoClasses defined in Type Library                     //
  54. // (NOTE: Here we map each CoClass to its Default Interface)            //
  55. // *********************************************************************//
  56.   controlusu = Icontrolusu;
  57.   ddd = Iddd;
  58.  
  59.  
  60. // *********************************************************************//
  61. // Interface: Icontrolusu
  62. // Flags:     (4416) Dual OleAutomation Dispatchable
  63. // GUID:      {DBD49CA1-0399-11D3-9629-0000E85E7443}
  64. // *********************************************************************//
  65.   Icontrolusu = interface(IDispatch)
  66.     ['{DBD49CA1-0399-11D3-9629-0000E85E7443}']
  67.     function busqueda(const cadena: WideString): Integer; safecall;
  68.   end;
  69.  
  70. // *********************************************************************//
  71. // DispIntf:  IcontrolusuDisp
  72. // Flags:     (4416) Dual OleAutomation Dispatchable
  73. // GUID:      {DBD49CA1-0399-11D3-9629-0000E85E7443}
  74. // *********************************************************************//
  75.   IcontrolusuDisp = dispinterface
  76.     ['{DBD49CA1-0399-11D3-9629-0000E85E7443}']
  77.     function busqueda(const cadena: WideString): Integer; dispid 1;
  78.   end;
  79.  
  80. // *********************************************************************//
  81. // Interface: Iddd
  82. // Flags:     (4416) Dual OleAutomation Dispatchable
  83. // GUID:      {DBD49CCE-0399-11D3-9629-0000E85E7443}
  84. // *********************************************************************//
  85.   Iddd = interface(IDispatch)
  86.     ['{DBD49CCE-0399-11D3-9629-0000E85E7443}']
  87.   end;
  88.  
  89. // *********************************************************************//
  90. // DispIntf:  IdddDisp
  91. // Flags:     (4416) Dual OleAutomation Dispatchable
  92. // GUID:      {DBD49CCE-0399-11D3-9629-0000E85E7443}
  93. // *********************************************************************//
  94.   IdddDisp = dispinterface
  95.     ['{DBD49CCE-0399-11D3-9629-0000E85E7443}']
  96.   end;
  97.  
  98.   Cocontrolusu = class
  99.     class function Create: Icontrolusu;
  100.     class function CreateRemote(const MachineName: string): Icontrolusu;
  101.   end;
  102.  
  103.   Coddd = class
  104.     class function Create: Iddd;
  105.     class function CreateRemote(const MachineName: string): Iddd;
  106.   end;
  107.  
  108. implementation
  109.  
  110. uses ComObj;
  111.  
  112. class function Cocontrolusu.Create: Icontrolusu;
  113. begin
  114.   Result := CreateComObject(CLASS_controlusu) as Icontrolusu;
  115. end;
  116.  
  117. class function Cocontrolusu.CreateRemote(const MachineName: string): Icontrolusu;
  118. begin
  119.   Result := CreateRemoteComObject(MachineName, CLASS_controlusu) as Icontrolusu;
  120. end;
  121.  
  122. class function Coddd.Create: Iddd;
  123. begin
  124.   Result := CreateComObject(CLASS_ddd) as Iddd;
  125. end;
  126.  
  127. class function Coddd.CreateRemote(const MachineName: string): Iddd;
  128. begin
  129.   Result := CreateRemoteComObject(MachineName, CLASS_ddd) as Iddd;
  130. end;
  131.  
  132. end.
  133.