
delphixe
xxfly
这个作者很懒,什么都没留下…
展开
-
64os “System.BadImageFormatException:”没有为此类型库注册包装程序集。
“System.BadImageFormatException:”没有为此类型库注册包装程序集。在System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.Create.ComponentsCore(IDesignerHost host)在System.Drawing.Design.ToolboxItem.CreateComp原创 2012-03-16 15:19:04 · 2880 阅读 · 0 评论 -
判断编绎的平台是32bit还是64bit
{$ifdef CPUX64} lblVision.Caption := lblVision.Caption + '(64bit)'// 64 bit compiler used; {$else} lblVision.Caption := lblVision.Caption + '(32bit)'; // 32 bit compiler used; {$endif}原创 2012-10-19 08:46:11 · 503 阅读 · 0 评论 -
遍历窗体控件,设置FontName
function HasProperty(const AObject: TObject;const APropName:String):Boolean; var PropInfo:PPropInfo;begin PropInfo:=GetPropInfo(AObject.ClassInfo,APropName); Result:=Assigned(PropInfo);原创 2016-04-13 16:17:26 · 1529 阅读 · 0 评论 -
C#绑定Delphi的Dll多事件出错,ErrorCode=-2147220990
绑定任何一个都可以,但绑定多个就出错ErrorCode=-2147220990,把下面的ckSingle,改为ckMulti,测试通过。 delphi中TMyClass.Initialize的FConnectionPoint:=FConnectionPoints.CreateConnectionPoint(AutoFactory.EventIID, ckSingle, EventConne原创 2017-04-05 12:24:25 · 430 阅读 · 0 评论 -
IdHttp.Get 返回字符串中,双引号(")前的汉字返回乱码(�?)
ResponseStream := TStringStream.Create('');...ResponseStr := UTF8Decode(ResponseStream.DataString;把解码放到创建时ResponseStream := TStringStream.Create('',TEncoding.UTF8);...ResponseStr := ResponseStre原创 2017-05-11 15:59:06 · 1317 阅读 · 0 评论 -
mac os libray not loaded:(加载dylib出错)
用Delphixe10调用一个三方的dylib,在mac上运行报错 libray not loaded:1、修改Project Options中的packages-Runtime Packages-Link with runtime packages设置为True2、修改Project-Deployment-三方dylib的Remote Path,改为Contents\Ma原创 2017-08-04 17:26:06 · 706 阅读 · 0 评论 -
保存为UTF-8格式的Txt文件
procedure SaveUTF8File(const AFileName: string; AListText: TStringList);var Latin1Encoding: TEncoding;begin Latin1Encoding := TEncoding.GetEncoding(CP_UTF8); try AListText.SaveToFile原创 2018-04-19 11:14:36 · 7848 阅读 · 0 评论 -
delphixe Dll 断点设置无效
菜单Project->Options...Delphi Compiler -Comiling -Debugging +Use debug .dcus 设置为True -Linking +Include remote debug symbols设置为True原创 2018-06-29 14:27:15 · 1539 阅读 · 1 评论