摘要:
procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(ExtractFilePath(ParamStr(0))); //获取程序所在目录 ShowMessage(ExtractFilePath(Application.ExeName)); //获取程序所在目录 ShowMessage(G...
阅读全文
posted @ 2007-11-30 22:03
万一
阅读(6298)
推荐(0)
编辑
摘要:
//指针的运算仅对 PChar 类型 procedure TForm1.Button1Click(Sender: TObject); var p: PChar; begin p := 'China'; Inc(p); p := p + 1; ShowMessage(p); //返回:ina Dec(p); p := p - 1; ShowMessage(p);...
阅读全文
posted @ 2007-11-30 21:19
万一
阅读(4005)
推荐(1)
编辑
摘要:
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ActnList, StdCtrls, ExtCtrls; type TForm1 = class(TForm) Button1: TButton; ...
阅读全文
posted @ 2007-11-30 20:59
万一
阅读(4658)
推荐(0)
编辑