随笔分类 -  Delphi

1 2 3 4 5 下一页
Delphi Programe
Delphi生成JSON
摘要:unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文
posted @ 2022-04-15 11:03 garfieldtom 阅读(219) 评论(0) 推荐(0) 编辑
Ehlib9.0汉化
摘要:Ehlib包中的汉化文件不完整,自己随便翻译了一下,只翻译了常量,窗口没有翻译,那个内容少,用的时候再翻译吧。 英文: {*******************************************************} { } { EhLib 9.0 } { EhLib 9.0.10 阅读全文
posted @ 2021-12-21 19:53 garfieldtom 阅读(181) 评论(0) 推荐(0) 编辑
Http协议访问DataSnap Rest 服务器(转)
只有注册用户登录后才能阅读该文。
posted @ 2019-05-16 05:43 garfieldtom 阅读(12) 评论(0) 推荐(0) 编辑
【转】关于提示can't load package 'xxx.bpl.' 错误问题的解决方法
摘要:转自: http://blog.sina.com.cn/s/blog_44fa172f0102v9x3.html 'xxx.bpl'包实际存在, 路径并且正确. 但是总提示'can't load package 'xxx.bpl'. a. 一般情况, 把packge设计包安装在默认输出路径下, 可以 阅读全文
posted @ 2019-01-27 06:30 garfieldtom 阅读(1167) 评论(0) 推荐(0) 编辑
最新的Delphi版本号对照
摘要:The CompilerVersion constant identifies the internal version number of the Delphi compiler. It is defined in the System unit and may be referenced eit 阅读全文
posted @ 2017-09-17 07:15 garfieldtom 阅读(4553) 评论(0) 推荐(0) 编辑
SuperObject生成示例
摘要:var jo,jEntity,jSubEntity: ISuperObject; jaOrder,jaEntity,jaSubEntity: ISuperObject; i,j,entityCount,subEntityCount: Integer; begin entityCount:=2; subEntityCount:=3; jo := SO(); jaEn... 阅读全文
posted @ 2017-08-23 19:49 garfieldtom 阅读(315) 评论(0) 推荐(0) 编辑
Why does Delphi XE7 IDE hangs and fails on out of memory exception?
摘要:引自: https://stackoverflow.com/questions/27701294/why-does-delphi-xe7-ide-hangs-and-fails-on-out-of-memory-exception Why does Delphi XE7 IDE hangs and 阅读全文
posted @ 2017-08-21 07:39 garfieldtom 阅读(578) 评论(0) 推荐(0) 编辑
使用 TRESTClient 与 TRESTRequest 作为 HTTP Client(转)
摘要:使用 TRESTClient 与 TRESTRequest 作为 HTTP Client 转自:http://www.cnblogs.com/dennieschang/p/6966403.html 在 Delphi XE 推出以前的年代,Delphi的发展方向是笔直朝向资料库连结Windows 应用 阅读全文
posted @ 2017-06-15 20:24 garfieldtom 阅读(1821) 评论(0) 推荐(0) 编辑
Delphi提取PDF文本
摘要:生成PDF的控件很多,但解析的不是太多,pdf Toolkit可以,但测试的第一个复杂的pdf就报告错误,并且汉字乱码,可能使用的版本或使用方法不对。 想起之前使用java调用的Apache名下的pdfBox库很好用,于是就用下载了pdfBox,使用Delphi来调用pdfBox解析pdf文本。 环 阅读全文
posted @ 2017-06-09 08:44 garfieldtom 阅读(3718) 评论(0) 推荐(0) 编辑
Delphi读取不Word中不规则表格数据并转换成标准表格
摘要:程序需要,需要将word中不规则的表格数据转换为标准的表格,即合并的单元格按正常格式解析,word中的表格格式如下: 解析后数据如下: 借鉴了网上代码,如下处理: 阅读全文
posted @ 2017-05-16 10:26 garfieldtom 阅读(1269) 评论(0) 推荐(0) 编辑
Delphi控制Excel输出上标示例
摘要:直接上代码吧,这个示例在Excel中输出一个M2: 关键是: 至于属性,查资料或通过宏来看吧。 阅读全文
posted @ 2016-12-26 15:09 garfieldtom 阅读(1099) 评论(2) 推荐(2) 编辑
动态设置和访问cxgrid列的Properties(转)
摘要:原文:http://www.cnblogs.com/hnxxcxg/archive/2010/05/24/2940711.html 动态设置和访问cxgrid列的Properties 设置: cxGrid1DBTableView1Column.PropertiesClass = TcxTextEdi 阅读全文
posted @ 2016-12-23 18:49 garfieldtom 阅读(326) 评论(0) 推荐(0) 编辑
Delphi调用REST
摘要:Delphi调用REST很简单,首先在界面上放上:RESTClient1: TRESTClient; RESTRequest1: TRESTRequest; RESTResponse1: TRESTResponse;然后简单调用即可:RESTClient1.BaseURL:=edtURL... 阅读全文
posted @ 2015-10-22 14:57 garfieldtom 阅读(3258) 评论(0) 推荐(0) 编辑
StompClient的包装类
摘要:为了简化MQ调用,写了个StompClient的包装类,可以供需要的参考:unit FStompClient;interfaceuses SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs, Stomp... 阅读全文
posted @ 2014-12-27 15:00 garfieldtom 阅读(3669) 评论(1) 推荐(0) 编辑
Delphi消息推送
摘要:移动端的消息推送大家都体验过,智能手机上一大堆广告等各种消息会不时从消息栏中弹出来骚扰你。PC程序中我们有时也会用到消息推送,比如通知之类。通常我们使用的方法可能更多地使用Socket之类来处理,有时效率更低的方法是做数据库的轮询。如果终端多、消息多,数据库的轮询方式是肯定不能被接受的。现在比较流行... 阅读全文
posted @ 2014-12-19 11:06 garfieldtom 阅读(7224) 评论(0) 推荐(0) 编辑
Indy Changed from Indy10
摘要:Indy Changed from Indy10http://stackoverflow.com/questions/16339656/delphi-xe4-indy-compatibility-issue-between-tbytes-and-tidbyteshttp://stackoverflo... 阅读全文
posted @ 2014-12-18 20:56 garfieldtom 阅读(1264) 评论(0) 推荐(0) 编辑
Language and Compiler Features Since Delphi 7
摘要:from:http://edn.embarcadero.com/cn/article/34324Language and Compiler Features Since Delphi 7InliningRoutines can now be marked with theinlinedirectiv... 阅读全文
posted @ 2014-12-18 20:31 garfieldtom 阅读(341) 评论(0) 推荐(1) 编辑
Delphi单元文件引用名称问题
摘要:Delphi新版本的单元文件格式变化了,如windows变成了winapi.windows,如果想在单元引用中使用简称,则需要在工程选项中配置:这样就可以使用全名或简写来引用单元了。 阅读全文
posted @ 2014-12-10 20:28 garfieldtom 阅读(1658) 评论(0) 推荐(0) 编辑
cxGrid导出Excel货币符号问题
摘要:cxGrid导出到Excel,对于Currency类型总是加上了货币符号,可以修改导出文件设置来去掉:在cxXLSExport.pas文件中,修改:procedure TcxXLSExportProvider.SetCellDataCurrency(const ACol, ARow: Integer... 阅读全文
posted @ 2014-11-18 08:40 garfieldtom 阅读(1265) 评论(0) 推荐(0) 编辑
一个简单的工作日计算
摘要:一个简单的工作日计算:function getWorkDay(dtBegin:TDateTime;IncDays:Integer):TDateTime;const days: array[1..7] of string=('7','1','2','3','4', '5','6');var wee... 阅读全文
posted @ 2014-09-16 13:59 garfieldtom 阅读(289) 评论(0) 推荐(0) 编辑

1 2 3 4 5 下一页