[fpc-pascal]chdir problem?
    James_Wilson at i2.com 
    James_Wilson at i2.com
       
    Wed Dec  6 19:52:33 CET 2000
    
    
  
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