[fpc-pascal]chdir problem? -- 2nd request

James_Wilson at i2.com James_Wilson at i2.com
Fri Dec 22 14:14:41 CET 2000


Has anyone on the development team had a chance to look into this yet? I
posted this a few weeks back.

{----------------------------------------------------------------------------}

Um, I must be missing something real obvious because this makes no sense...
does chdir have a problem when compiling win32 targets? I know, sounds dumb
but it doesn't _seem_ to be working. Try compiling this:

Program CDir;

var
  Answer : string;

BEGIN
  writeln;
  write ('Change to dir?: ');
  readln (Answer);

  if Answer = '' then exit;

  {$I-}
    chdir (Answer);
  {$I+}
  if ioresult <> 0 then writeln ('Error changing to ',Answer);
END.

go32 targets work fine, but win32's don't change the directory (and it
doesn't give any errors either). I must be missing something but for the
life of me I can't figure it out. Can anyone else?

TIA,
Jim






More information about the fpc-pascal mailing list