1 uses SHDocVw
2 add interface IPersistPropertyBag
3 add function to private
{ IPersistPropertyBag }
function IPersistPropertyBag.InitNew = PersistPropertyBagInitNew;
function IPersistPropertyBag.Load = PersistPropertyBagLoad;
function IPersistPropertyBag.Save = PersistPropertyBagSave;
function PersistPropertyBagLoad(const pPropBag: IPropertyBag
const pErrorLog: IErrorLog): HResult
stdcall;
function PersistPropertyBagSave(const pPropBag: IPropertyBag
fClearDirty: BOOL
fSaveAllProperties: BOOL): HResult
stdcall;
function PersistPropertyBagInitNew: HResult
stdcall;
function GetClassID(out classID: TCLSID): HResult
stdcall;
4 implementation
function TafxLogin.GetClassID(out classID: TCLSID): HResult;
begin
Result := S_OK;
end;
function TafxLogin.PersistPropertyBagInitNew: HResult;
begin
Result := S_OK;
end;
function TafxLogin.PersistPropertyBagLoad(const pPropBag: IPropertyBag;
const pErrorLog: IErrorLog): HResult;
var
param: olevariant;
aa:string;
begin
if pPropBag.Read( 'ParamName', param, pErrorLog) = S_OK then
aa:=param;
Result := S_OK;
end;
function TafxLogin.PersistPropertyBagSave(const pPropBag: IPropertyBag;
fClearDirty, fSaveAllProperties: BOOL): HResult;
begin
Result := S_OK;
end;