摘要: 每次安装完jdk,设置home路径,为啥jdk的安装包不默认个path添加到环境变量呢。搞个工具 地址:https://download.csdn.net/download/ljklxlj/89596324 阅读全文
posted @ 2024-08-05 08:49 Tomato131 阅读(4) 评论(0) 推荐(0)
摘要: 代替copyfile,效率会低,少用,并且不适合大文件。 unit UnitCopy; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Grap 阅读全文
posted @ 2024-08-05 08:39 Tomato131 阅读(12) 评论(0) 推荐(0)
摘要: 真实业务场景的考虑 按照支付宝或者微信支付的开发手册的说法,一个标准的客户端接入支付业务模型应该是这样的,我忽略时序图,只用文字描述: 用户登录客户端,选择商品,然后点击客户端支付。 客户端收集商品信息,然后调用自己业务平台的预付款接口。 业务平台根据客户端提交的商品信息,生成自己的订单号等内容,并 阅读全文
posted @ 2024-07-31 13:26 Tomato131 阅读(36) 评论(0) 推荐(0)
摘要: delphi7代码: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Overbyte 阅读全文
posted @ 2024-07-31 13:24 Tomato131 阅读(7) 评论(0) 推荐(0)
摘要: uses Classes,TypInfo ; type TCommandType = (ctEmptyCommand,ctAdd,ctModify); TCommandTypeConvert=class public class function CommandToString(ACommand: 阅读全文
posted @ 2024-07-31 11:31 Tomato131 阅读(22) 评论(0) 推荐(0)
摘要: 1:用正则表达式判断ip地址合法 uses SysUtils, RegularExpressions; function IsValidIPv4(const IP: string): Boolean; var Regex: TRegEx; begin // IPv4 地址的正则表达式 Regex : 阅读全文
posted @ 2024-07-31 10:52 Tomato131 阅读(83) 评论(0) 推荐(0)
摘要: 异常: D:\AC2024\20240729\delphiJIN_JAVA\JavaTest\bin\x64>java MYclasses.JavaClassForDelphiTest Exception in thread "main" java.lang.NoClassDefFoundError 阅读全文
posted @ 2024-07-30 15:57 Tomato131 阅读(90) 评论(0) 推荐(0)
摘要: 1:下载 DelphiJNI:下载地址https://github.com/aleroot/DelphiJNI,版本比较老,没有找到其他,就用这个吧,如朋友有较新的pas文件,请留言下 2:下载jdk,这里下载JDK,这里使用javase-jkd18,也不知道这个版本要不要收费,这里学习用暂时不关新 阅读全文
posted @ 2024-07-29 19:46 Tomato131 阅读(15) 评论(0) 推荐(0)
摘要: path1: C:\Program Files (x86)\Borland\Delphi7\Bin;C:\Program Files (x86)\Borland\Delphi7\Projects\Bpl;C:\Program Files (x86)\VMware\VMware Workstation 阅读全文
posted @ 2024-07-29 10:31 Tomato131 阅读(20) 评论(0) 推荐(0)
摘要: 在 Delphi 中,分割字符串可以通过多种方式实现,最常用的方法是使用 TStringList、String.Split 方法(在 Delphi 2009 及以上版本中可用),或者使用正则表达式。以下是几种常见的方法来分割字符串。 使用 TStringList TStringList 是一个非常方 阅读全文
posted @ 2024-07-28 23:02 Tomato131 阅读(36) 评论(0) 推荐(0)