在Delphi中通过函数获取GUID
2006-02-04 14:11:37 来源:WEB开发网核心提示: keyWord: ActiveX, TGUID, CoCreateGUID, GUIDToString//---Test PRogram By Conan 2005/04/14---//unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, C
keyWord:
ActiveX, TGUID, CoCreateGUID, GUIDToString
//---Test PRogram By Conan 2005/04/14---//
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,
ActiveX, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
I : Integer;
sGUID : string;
TmpGUID: TGUID;
begin
for I := 0 to 10 do
begin
if CoCreateGUID(TmpGUID) = S_OK then
sGUID := GUIDToString(TmpGUID)
else
ShowMessage('Create GUID error!');
ShowMessage(sGUID);
end;
end;
end.
- ››Delphi实现把10进制转换成16进制的函数进制转化
- ››通过远程管理更改ESXi主机root用户密码
- ››Delphi中将字符串按给定字符分隔(似split函数功能...
- ››Delphi 动态创建窗体,锁定窗口赋值
- ››通过JS得到当前焦点(鼠标)的坐标
- ››通过Mysql命令行语句来导入、导出数据库文件
- ››Delphi 与 VC 共享接口和对象
- ››通过查看mysql 配置参数、状态来优化你的mysql
- ››Delphi图像处理 -- 表面模糊
- ››通过oracle的sys密码重置其它密码
- ››通过HashMap和ArrayList容器实现一个Key对多个值
- ››通过传时间实现UDP对时
更多精彩
赞助商链接