摘要:
Delphi 的运算符列表分类运算符操作操作数结果类型范例算术运算符+加整数,实数整数,实数X + Y-减整数,实数整数,实数Result - 1*乘整数,实数整数,实数P * InterestRate/实数除整数,实数实数X / 2div整数除整数整数Total div UnitSizemod取模整数整数Y mod 6+(一元)符号等同整数,实数整数,实数+7-(一元)符号相反整数,实数整数,实数-X布尔运算符not否定布尔型Booleannot (C in MySet)and与布尔型BooleanDone and (Total > 0)or或布尔型BooleanA or Bxor异或 阅读全文
posted @ 2011-07-09 21:21
斥也
阅读(247)
评论(0)
推荐(0)
摘要:
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Memo1: TMemo; procedure FormCreate(Sender: TObject); end;var Form1: TForm1;implementation{$R *.dfm}uses ShlObj; {SHGetSpecialFolderLocation、SHGetPathFromID 阅读全文
posted @ 2011-07-09 21:19
斥也
阅读(142)
评论(0)
推荐(0)
摘要:
WinAPI: CreateDirectory - 建立文件夹//声明:CreateDirectory( lpPathName: PChar; {目录名} lpSecurityAttributes: PSecurityAttributes {TSecurityAttributes 结构的指针}): BOOL;//TSecurityAttributes 是 _SECURITY_ATTRIBUTES 结构的重定义_SECURITY_ATTRIBUTES = record nLength: DWORD; {结构体的大小} lpSecurityDescriptor: Pointer; {安全描述} b 阅读全文
posted @ 2011-07-09 21:18
斥也
阅读(143)
评论(0)
推荐(0)
摘要:
WinAPI: GetWindowsDirectory - 获取 Windows 所在目录//声明:GetWindowsDirectory( lpBuffer: PChar; {缓冲区} uSize: UINT {缓冲区大小}): UINT; {返回实际长度}//举例:var arr: array[0..MAX_PATH] of Char; num: UINT;begin num := GetWindowsDirectory(arr, MAX_PATH); ShowMessage(arr); {C:\WINDOWS} ShowMessage(IntToStr(num)); {10}end;Wi 阅读全文
posted @ 2011-07-09 21:17
斥也
阅读(228)
评论(0)
推荐(0)

浙公网安备 33010602011771号