摘要: 1.中文转拼音 function TForm1.yHzToPy(HZ: string): char; begin case Word(HZ[1])shl 8+Word(HZ[2]) of $B0A1..$B0C4:result:='A'; $B0C5..$B2C0:result:='B'; $B2C1..$B4ED:result:='C'; $B4EE..$B6E9:result:='D'; $B6EA..$B7A1:resul... 阅读全文
posted @ 2013-02-24 15:59 神码都在云端 阅读(364) 评论(0) 推荐(0) 编辑
摘要: function TServerForm.NameToIP(): String;type pu_long = ^u_long;var varTWSAData : TWSAData; varPHostEnt : PHostEnt; varTInAddr : TInAddr; namebuf : Array[0..255] of Ansichar; fd : integer; rc : integer;begin result := ''; rc := WSAStartup($101,varTWSAData); if rc <> 0 then // raise ESoc 阅读全文
posted @ 2013-02-24 15:56 神码都在云端 阅读(203) 评论(0) 推荐(0) 编辑
摘要: RunOnStartup(self.SoeAppInfo1.AppName, ParamStr(0), chkAutoStart.Checked);procedure TServerForm.RunOnStartup(sProgTitle, sCmdLine: string; bStartup: boolean);var sKey: string; reg : TRegIniFile;begin sKey := ''; //sKey := 'Once' if you wish it to only run on the next time you startup 阅读全文
posted @ 2013-02-24 15:54 神码都在云端 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1.过滤同步procedure TReport10Form.cxGridViewDataControllerFilterChanged(Sender: TObject);var cds: TClientDataSet;begin cds := cxGridView.DataController.DataSource.DataSet as TClientDataSet; try cds.Filtered := false; cds.Filter := cxGridView.DataController.filter.filtertext; cds.Filtered := True; except 阅读全文
posted @ 2013-02-24 15:45 神码都在云端 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: unit mac;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;type TForm1 = class(TForm) lbl1: TLabel; lbl2: TLabel; Button1: TButton; Edit1: TEdit; procedure Button1Click(Sender: TObject); p 阅读全文
posted @ 2013-02-24 15:41 神码都在云端 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 演示(jdk+eclip+android sdk) 本人引用立宇泰电子的文章一 相关下载(1) java JDK下载:进入该网页: http://java.sun.com/javase/downloads/index.jsp (或者直接点击下载)如下图:选择 Download JDK 只下载JDK,无需下载jre. (2)eclipse下载 进入该网页: http://www.eclipse.org/downloads/ (或者直接点击下载:BT下载 HTTP下载) 如下图:我们选择第一个(即eclipse IDE for java EE Developers)(3)下载Android SDK 阅读全文
posted @ 2011-07-30 10:33 神码都在云端 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1.定义Key常量: 下面三个常量可所以定义, 本人是为了程序注册写得一个简单的这侧表存取功能 const _RootKey = HKEY_LOCAL_MACHINE; _CurrentKey = '\SoftWare\HANDY'; _SoftKeyItem = 'serial_number'; _SoftCodeID = 'soft_codeid'; _HDID = 'hd_id';2.具体函数实现/// <summary>/// 读取 注册表字符串/// </summary>class functio 阅读全文
posted @ 2011-07-30 10:16 神码都在云端 阅读(393) 评论(0) 推荐(0) 编辑
摘要: var Cdigs: array[0..9] of string = ('零','壹','贰','叁','肆','伍','陆','柒','捌','玖'); Cdsets: array[1..18] of string = ('万','仟','佰','拾','亿', '仟','佰','拾','万' 阅读全文
posted @ 2011-07-30 10:08 神码都在云端 阅读(325) 评论(0) 推荐(1) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-07-30 09:44 神码都在云端 阅读(251) 评论(5) 推荐(0) 编辑
摘要: 引用一位仁兄的 代码1usesIdHTTP;2functionGetPublicIP:string;3var4strIP,URL:string;5iStart,iEnd:Integer;6MyIdHTTP:TIdHTTP;7begin8Result:='';9MyIdHTTP:=TIdHTTP.Create(nil);10try11try12URL:=MyIdHTTP.Get('http://www.ip138.com/ip2city.asp');13except14end;15finally16MyIdHTTP.Free;17end;1819ifLength( 阅读全文
posted @ 2011-07-28 19:14 神码都在云端 阅读(620) 评论(0) 推荐(0) 编辑