I
ili
Unregistered / Unconfirmed
GUEST, unregistred user!
{$IFNDEF WIN32}
const MAX_PATH = 144;
{$ENDIF}
var
FormMain: TFormMain;
SysDir: string;
implementation
{$R *.DFM}
procedure TFormMain.FormShow(Sender: TObject);
var
a: array [0..MAX_PATH] of Char;
begin
GetWindowsDirectory(a, SizeOf(SysDir));
end;
可这样得到的a却是[red]空[/red]的!?怎么回事?
const MAX_PATH = 144;
{$ENDIF}
var
FormMain: TFormMain;
SysDir: string;
implementation
{$R *.DFM}
procedure TFormMain.FormShow(Sender: TObject);
var
a: array [0..MAX_PATH] of Char;
begin
GetWindowsDirectory(a, SizeOf(SysDir));
end;
可这样得到的a却是[red]空[/red]的!?怎么回事?