home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
- interface
- uses
- ComObj, ActiveX, AspTlb, TDM58_TLB, StdVcl;
-
- type
- TDrBob42 = class(TASPObject, IDrBob42)
- protected
- procedure OnEndPage; safecall;
- procedure OnStartPage(const AScriptingContext: IUnknown); safecall;
- procedure ASProduce; safecall;
- end;
-
- implementation
- uses
- ComServ, SysUtils;
-
- procedure TDrBob42.OnEndPage;
- begin
- inherited OnEndPage;
- end;
-
- procedure TDrBob42.OnStartPage(const AScriptingContext: IUnknown);
- begin
- inherited OnStartPage(AScriptingContext);
- end;
-
- procedure TDrBob42.ASProduce;
- var
- UserName: String;
- begin
- UserName := Session['UserName'];
- Response.Write('<H1>Hello, '+UserName+'!</H1>');
- Response.Write('<HR>');
- Response.Write('The time is: '+TimeToStr(Now));
- end;
-
- initialization
- TAutoObjectFactory.Create(ComServer, TDrBob42, Class_DrBob42,
- ciMultiInstance, tmApartment);
- end.
-