摘要:
library dll10; { Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select 阅读全文
posted @ 2020-09-25 09:41
绿水青山777
阅读(119)
评论(0)
推荐(0)
摘要:
Post请求在网页中多使用List形式提交参数。 不过在一些API中规定了POST的请求格式为 JSON 格式或 XML,这是需要注意发起请求前需要先设置 ContentType 属性,使用Stream方式提交 已上面代码为例: 提交 JSON 格式:IdHttp.Request.ContentTy 阅读全文
posted @ 2020-09-25 09:40
绿水青山777
阅读(1004)
评论(0)
推荐(0)
摘要:
此问题由CPU处理方式不同引起 ,一般处理方法为 : num + 0.0000001 然后四舍五入, 下面是别人的转换得来,一样可以避免。 阅读全文
posted @ 2020-09-25 09:37
绿水青山777
阅读(328)
评论(0)
推荐(0)
摘要:
回调函数则应 定义为 TCall = function(...);stdcall; 跟普通函数定义一样,只不过最后要指明调用方法stdcall, 事件是 TCall = procedure(....) of object; 阅读全文
posted @ 2020-09-25 09:35
绿水青山777
阅读(165)
评论(0)
推荐(0)
摘要:
Delphi回调函数及其使用 1 回调函数的概述 回调函数是这样一种机制:调用者在初始化一个对象(这里的对象是泛指,包括OOP中的对象、全局函数等)时,将一些参数传递给对象,同时将一个调用者可以访问的函数地址传递给该对象。这个函数就是调用者和被调用者之间的一种通知约定,当约定的事件发生时,被调用者( 阅读全文
posted @ 2020-09-25 09:34
绿水青山777
阅读(240)
评论(0)
推荐(0)
摘要:
procedure TLingSD.PosPrint(DJBH: string; ChongD: Boolean; DYSJ, CZY, ChongDYY: string); var F: TextFile; _Title, Stemp: string; DuanK :String; begin M 阅读全文
posted @ 2020-09-25 09:32
绿水青山777
阅读(268)
评论(0)
推荐(0)
摘要:
//***************************************************************************** // NPC Add This 2019-05-15 16:29:54 // // 名 称:TfrmPublic.ExpDBGridEh_E 阅读全文
posted @ 2020-09-25 09:31
绿水青山777
阅读(131)
评论(0)
推荐(0)
摘要:
aNode := NodeNew('input'); aNode.Value := ' '; //是个空格字符,要不然 这个节点不能显示 = <input/> var aDOC, xml: TNativeXml; aNode,aNode1: TXmlNode; declaration: TsdDec 阅读全文
posted @ 2020-09-25 09:30
绿水青山777
阅读(113)
评论(0)
推荐(0)