编程资料和资料分享专区 - 爱资料
分类:
DES算法Delphi源代码

DES算法Delphi源代码

栏目分类:Delphi 浏览次数:105 发布时间:2015-09-22

引用 unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; Edit1: TEdit; Edit2: TEdit; Button1: TButton; Button2...

TAG:
delphi Base64, Quoted-Printable 的解码与编码函数

delphi Base64, Quoted-Printable 的解码与编码函数

栏目分类:Delphi 浏览次数:246 发布时间:2015-09-22

以前写的几个 Base64 与 Quoted-Printable的解码与编码函数。贴出来给有用的朋友参考一下。 { Quoted-Printable 解码 } function DecodeQuotedPrintable(Str: String): String; { Quoted-Printable 编码 } function Encode...

TAG:
delphi字符串加密解密

delphi字符串加密解密

栏目分类:Delphi 浏览次数:104 发布时间:2015-09-22

//加密函数 Function EncrypKey(Src: String; Key: String): string; var idx: integer; KeyLen: integer; KeyPos: integer; offset: integer; dest: string; SrcPos: integer; SrcAsc: integer; TmpSrcAsc: integer; Range: integer; begin KeyLen := Le...

TAG:
Delphi取得目前程序位置名称路径

Delphi取得目前程序位置名称路径

栏目分类:Delphi 浏览次数:81 发布时间:2015-09-22

// 假如程式路徑在 c:\projects\bin\project1.exe ShowMessage( 'Drive = ' +ExtractFileDrive (Application . Exename)); //C: ShowMessage( 'Dir = ' +ExtractFileDir (Application . Exename)); //c:\projects\bin ShowMessage( 'Path = ' +Extract...

TAG:
delphi try except语句 和 try finally语句用法以及区别

delphi try except语句 和 try finally语句用法以及区别

栏目分类:Delphi 浏览次数:83 发布时间:2015-09-22

try//尝试执行 {SomeCode} except//出错的时候执行, Except有特定的错误类型 {SomeCode} end; try//尝试执行 {SomeCode} finally//无论如何都强制执行 {SomeCode} end; 例: try Age:=StrToInt(Edit1.Text); ShowMessage(For...

TAG:
delphi关闭程序Close,application.Terminate与halt区别

delphi关闭程序Close,application.Terminate与halt区别

栏目分类:Delphi 浏览次数:75 发布时间:2015-09-22

当Close是一个主窗体时,程序会退出. Close会发生FormClose事件,FormCloseQuery事件 Halt会发生FormDestory事件, Application.Terminate以上三个事件都不会发生 Application.Terminate就是程序结束了。整个程序...

TAG:
Delphi  消息实现窗口最小化,最大化,关闭(delp

Delphi 消息实现窗口最小化,最大化,关闭(delp

栏目分类:Delphi 浏览次数:199 发布时间:2015-09-22

var hwnd: hwnd;//句柄 PostMessage(hwnd,WM_SYSCOMMAND, SC_MINIMIZE,0); //最小化 PostMessage(hwnd,WM_SYSCOMMAND, SC_MAXIMIZE,0);//最大化 PostMessage(hwnd,WM_SYSCOMMAND, SC_CLOSE,0);//关闭 窗口最小化时将释放占用的资源 P...

TAG:
delphi 防止程序重复执行(多种方法)

delphi 防止程序重复执行(多种方法)

栏目分类:Delphi 浏览次数:80 发布时间:2015-09-22

防止程序被重复执行(第一法) Windows95的程序一般都可以重复执行,例如你按下WIN+E组合键即启动资 源管理器,如果再按WIN+E组合键又会出现一个资源管理器,这两个程序互不干 扰。有...

TAG:
Delphi使程序的窗口出现在最前面并激活

Delphi使程序的窗口出现在最前面并激活

栏目分类:Delphi 浏览次数:156 发布时间:2015-09-22

Delphi使程序的窗口出现在最前面并激活 var pt, OldPt, NewPt: TPoint; begin //判断Application是否最小化,而不是主窗口的Handle, 使用Restore来还原 if IsIconic(Application.Handle) then Application.Restore; SetWi...

TAG:
delphi 判断程序是否已经运行

delphi 判断程序是否已经运行

栏目分类:Delphi 浏览次数:79 发布时间:2015-09-22

1。在工程单元中引用windows单元。 2。定义一个变量,类型为hMutex:THandle. 3. hMutex := CreateMutex(nil, False, 'TheStandard'); 4.if GetLastError = ERROR_ALREADY_EXISTS then begin CloseHandle(hMutex); ShowMessage('本软件...

TAG: