[fpc-pascal] Resetting the read only attribute
Is there a way to turn a 'read only' file to 'non-read only'??? Reading the manual I can't conclude how to do this... (I'm talking about windows XP files) Greetings from Sao Paulo - Brazil Ricardo ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Resetting the read only attribute
Hi. You could use FileSetAttr('filename', faArchive) method to set the attributes to archive and remove the read only flag. Remember to include SYSUTILS if you have not already done so. Regards Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Resetting the read only attribute
Thank you Ewald! IMHO the manual is not clear in this matter(:-\). Regards Ricardo At 15:54 1/8/2006, you wrote: Hi. You could use FileSetAttr('filename', faArchive) method to set the attributes to archive and remove the read only flag. Remember to include SYSUTILS if you have not already done so. Regards Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Resetting the read only attribute
On 1 Aug 06, at 14:57, Arí Ricardo Ody wrote: > Is there a way to turn a 'read only' file to 'non-read only'??? > > Reading the manual I can't conclude how to do this... (I'm talking > about windows XP files) I guess that it's mostly because attribute setting isn't portable across platforms (SysUtils.FileSetAttr always returns -1 on all Unix platforms and Dos.SetFAttr is simply ignored there). DOS-like (which includes Windows and OS/2) attributes are partly emulated for functions reading attributes, but their changes cannot be emulated meaningfully (well, it might be possible the other way round, i.e. emulating the more complex/complete solution for writing and the simpler one for reading, but the usefulness would be probably questionable. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compiling FPC for SPARC
I'm hoping to be able to sit down tomorrow and read more documentation, but for the moment here's where I'm at. * I can build i386 2.0.2 and appear to get something working out of it using make cycle or make zipinstall. "Working" in this context is that it will generate a runnable program from hello.pp and that the fp IDE appears OK. * If I run the tests (make full) on i386 2.0.2 I get a UML (User Mode Linux on 2.4.32) kernel crash on testfpuc.pp. I'll try and check this out on a "real" system presently, I've found UML to be pretty robust but knowing the effort that's going into FPC on i386 I'd suspect a kernel problem first. * On SPARC, I can build the 2.0.0 sources using the 2.0.0 compiler using make cycle or make zipinstall. All tests complete although I've not gone into the exact results of each yet. More tomorrow. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Minor issue compiling FPC from sources
Eugene Mayevski ha scritto: Hello! I tried to compile the daily snapshot from source and got the following during compilation: make.EXE[3]: Entering directory `D:/FreePascal/sources/fpc/compiler' process_begin: CreateProcess((null), echo Start 12:42:49 now 12:43:09, ...) failed. make (e=2): The system cannot find the file specified. make.EXE[3]: *** [echotime] Error 2 maybe you have delphi installed in your system? what there is in your path? bye tiziano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal