home *** CD-ROM | disk | FTP | other *** search
- unit Unit2;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- ComObj, VCLCom, StdVcl, BdeProv, DataBkr, CorbaRdm, CorbaObj,
- Project1_TLB, Db, DBTables;
-
- type
-
- TTMIAPLIC = class(TCorbaDataModule, ITMIAPLIC)
- DataSource1: TDataSource;
- Table1: TTable;
- Table2: TTable;
- private
- { Private declarations }
- public
- { Public declarations }
- protected
- function Get_Table1: IProvider; safecall;
- end;
-
- var
- TMIAPLIC: TTMIAPLIC;
-
- implementation
-
- {$R *.DFM}
-
- uses CorbInit, CorbaVcl;
-
- function TTMIAPLIC.Get_Table1: IProvider;
- begin
- Result := Table1.Provider;
- end;
-
- initialization
- TCorbaVclComponentFactory.Create('TMIAPLICFactory', 'TMIAPLIC', 'IDL:Project1/TMIAPLICFactory:1.0', ITMIAPLIC,
- TTMIAPLIC, iMultiInstance, tmMultiThreaded);
- end.
-