[fpc-devel] Re: File Dates

2005-01-29 Thread Jeff Pohlmeyer
> AFAIR Unix has some kind of registry for file types, based on file > extensions and characteristic bytes at the begin of an file. Does > somebody know more about that registry, so that it could be integrated > into the intended registry for archive handlers? ===

Re: [fpc-devel] File Dates

2005-01-29 Thread DrDiettrich
Michael Van Canneyt wrote: > > FPC defines 1900-1-1 as the start date, whereas Delphi defines > > 1899-12-30 as the start date - note: neither 1900 nor dec. 31! > > This requires different constants for converting a Unix date into > > TDateTime, or portable procedures. What's the suggested way for

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread DrDiettrich
Alexey Barkovoy wrote: > Delphi is compatible at least with Borland C++ and MS VC++. And taking in > accout > how COM intefaces are implemented in C++ (I'm supposing here all C++ compilers > support the same syntax) - each C++ compiler supporting MS way to declare COM > interfaces has compatible

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Michael Van Canneyt
On Sun, 30 Jan 2005, Alexey Barkovoy wrote: > >> I where any chance to see FreePascal generating VMT's for classes that is > >> more compatible with C++ / TurboPascal / Delphi one? > >> To explain mine question: recently I've been porting Delphi framework > >> interfacing to C++ code to FPC and

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C++ o

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C++ o

Re: [fpc-devel] VMT compatibility

2005-01-29 Thread Jonas Maebe
On 29 jan 2005, at 22:41, Alexey Barkovoy wrote: I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that

[fpc-devel] VMT compatibility

2005-01-29 Thread Alexey Barkovoy
Hi, I where any chance to see FreePascal generating VMT's for classes that is more compatible with C++ / TurboPascal / Delphi one? To explain mine question: recently I've been porting Delphi framework interfacing to C++ code to FPC and finded out that althrow Delphi VMT layout is compatible to C

Re: [fpc-devel] File Dates

2005-01-29 Thread Michael Van Canneyt
On Sat, 29 Jan 2005, Marco van de Voort wrote: > > Michael Van Canneyt wrote: > > > routines. There are a lot of TDateTime routines in the RTL, they would > > > all be at your disposal. > > > > Okay, I'll use TDateTime internally, with the following questions: > > > > FPC defines 1900-1-1 as the

Re: [fpc-devel] File Dates

2005-01-29 Thread Marco van de Voort
> Michael Van Canneyt wrote: > > routines. There are a lot of TDateTime routines in the RTL, they would > > all be at your disposal. > > Okay, I'll use TDateTime internally, with the following questions: > > FPC defines 1900-1-1 as the start date, whereas Delphi defines > 1899-12-30 as the start

Re: [fpc-devel] File Dates

2005-01-29 Thread Marco van de Voort
> The only file with such info is mime.types or mime.cap in /etc. > Of course, KDE and GNOME have their own copies of this file for internal > purposes. Hmm, I'd look in /usr/share/misc/magic/ myself. Or wherever the "file" commando's data is stored on your distro. __

Re: [fpc-devel] File Dates

2005-01-29 Thread Michael Van Canneyt
On Fri, 28 Jan 2005, DrDiettrich wrote: > Michael Van Canneyt wrote: > > > > What time stamps are in use on the various platforms? > > > > Too various. I suggest using simply TDateTime. It has microsecond > > resolution, which should be more than enough. It offers the additional > > advantage th