home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Database / ejemplos / CORBA16 / UNIT2.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1998-09-24  |  855 b   |  42 lines

  1. unit Unit2;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   ComObj, VCLCom, StdVcl, BdeProv, DataBkr, CorbaRdm, CorbaObj,
  8.   Project1_TLB, Db, DBTables;
  9.  
  10. type
  11.  
  12.   TTMIAPLIC = class(TCorbaDataModule, ITMIAPLIC)
  13.     DataSource1: TDataSource;
  14.     Table1: TTable;
  15.     Table2: TTable;
  16.   private
  17.     { Private declarations }
  18.   public
  19.     { Public declarations }
  20.   protected
  21.     function Get_Table1: IProvider; safecall;
  22.   end;
  23.  
  24. var
  25.   TMIAPLIC: TTMIAPLIC;
  26.  
  27. implementation
  28.  
  29. {$R *.DFM}
  30.  
  31. uses CorbInit, CorbaVcl;
  32.  
  33. function TTMIAPLIC.Get_Table1: IProvider;
  34. begin
  35.   Result := Table1.Provider;
  36. end;
  37.  
  38. initialization
  39.   TCorbaVclComponentFactory.Create('TMIAPLICFactory', 'TMIAPLIC', 'IDL:Project1/TMIAPLICFactory:1.0', ITMIAPLIC,
  40.     TTMIAPLIC, iMultiInstance, tmMultiThreaded);
  41. end.
  42.