1,New-ActiveX-Active Server object
2,Add New Method: getsession
3,Add New Param: sess1
All the source:
unit Unit2;
interface
uses
ComObj, ActiveX, AspTlb, Project1_TLB, StdVcl;
type
Tdelpasp = class(TASPMTSObject, Idelpasp)
protected
procedure getsession(var sess1: OleVariant); safecall;
end;
implementation
uses ComServ;
procedure Tdelpasp.getsession(var sess1: OleVariant);
begin
session.Value['key1']:=sess1;
end;
initialization
TAutoObjectFactory.Create(ComServer, Tdelpasp, Class_delpasp,
ciMultiInstance, tmApartment);
end.