home *** CD-ROM | disk | FTP | other *** search
- unit ServerClass;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, ComObj, StdVcl,
- CorbaObj, Server_TLB;
-
- type
-
- TTest = class(TCorbaImplementation, ITest)
- private
- { Private declarations }
- public
- { Public declarations }
- protected
- function Get_DateAndTime: TDateTime; safecall;
- end;
-
- implementation
-
- uses CorbInit;
-
- function TTest.Get_DateAndTime: TDateTime;
- begin
- Result := Now
- end;
-
- initialization
- TCorbaObjectFactory.Create('TestFactory', 'Test', 'IDL:Server/TestFactory:1.0', ITest,
- TTest, iMultiInstance, tmSingleThread);
- end.