如题
解决方案 »
- 关于调用系统摄像头拍照问题,跪求大神帮忙~
- 使用richview如何生成目录
- 想对一个含有回车符号的字段进行加密,不知道有什么好的算法,请指教!谢谢!重谢!
- reportmachine型的报表如何显示出来
- DELPHI板块现在没有多少人气了啊
- 招聘DELPHI程序员,工作地点:上海
- 請教:如何使用delphi7在win2000下實現winxp風格的界面和控件及菜單(且不要使用第三方控件).
- 请教一个Delphi多线程编程的规则
- 有关DBGrid的DrawColumncell和Drawdatacell事件问题。
- 为什么RECORDSET是只读??
- 请问,如何解决接收到的电子邮件header部分subject是乱码的问题?
- 帮忙解释一下回调函数!顶者有分
我在Borland新闻组中找到如何使ActiveForm获取网页中参数的方法:Hmmm. I followed an example from one of these newsgroups and got it workingwithout a hitch. Did you declare support for IPersistPropertyBag in theclass definition?Here is what mine looks like, with non-essentials removed:class TMyActiveForm = class(TActiveForm, IMyActiveForm,IPersistPropertyBag)protected:// IPersistPropertyBagfunction IPersistPropertyBag.GetClassID = PersistPropertyBagGetClassID;function IPersistPropertyBag.InitNew = PersistPropertyBagInitNew;function IPersistPropertyBag.Load = PersistPropertyBagLoad;function IPersistPropertyBag.Save = PersistPropertyBagSave;function PersistPropertyBagInitNew: HResult; stdcall;function PersistPropertyBagGetClassID(out classID: TCLSID): HResult;stdcall;function PersistPropertyBagLoad(const pPropBag: IPropertyBag; constpErrorLog: IErrorLog): HResult; stdcall;function PersistPropertyBagSave(const pPropBag: IPropertyBag;fClearDirty: BOOL; fSaveAllProperties: BOOL): HResult; stdcall;end;implementation(** IPersistPropertyBag*)function TMyActiveForm.PersistPropertyBagLoad(const pPropBag: IPropertyBag;const pErrorLog: IErrorLog): HResult;varv : OleVariant;beginif pPropBag.Read('ShowLegend', v, pErrorLog) = S_OK thenSet_ShowLegend( v );if pPropBag.Read('XMLDSOID', v, pErrorLog) = S_OK thenSet_XMLDSOID( v );result := S_OK;end;function TMyActiveForm..PersistPropertyBagSave(const pPropBag: IPropertyBag;fClearDirty, fSaveAllProperties: BOOL): HResult;varv : OleVariant;beginv := FShowLegend;pPropBag.Write( 'ShowLegend', v );v := FXMLDSOID;pPropBag.Write( 'XMLDSOID', v );result := S_OK;end;function TMyActiveForm..PersistPropertyBagGetClassID( out classID: TCLSID):HResult;begintryclassID := Class_MyActiveForm;Result := S_OK;exceptend;end;function TMyActiveForm.PersistPropertyBagInitNew: HResult;begintryresult := S_OK;exceptend;end;