[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;

  Answer : string;

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

  if Answer = '' then exit;

    chdir (Answer);
  if ioresult <> 0 then writeln ('Error changing to ',Answer);

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?


More information about the fpc-pascal mailing list