Michael Van Canneyt wrote:
On Sun, 23 Jul 2006, Felipe Monteiro de Carvalho wrote:

On 7/23/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
So, but it is not actually a bug ? It just means that the command is not
executed
on older windows version ?
I think this is a bug. Because Free Pascal should allow the users to
write a single software and expect it to run on all Windows versions.

It does:

All you need to do is specify the old size in the size field.

Yes, and that is the point. Where you get the right size from? Normally you use sizeof(STRUCTURE) but this won't work for older Windows versions where you need to specify smaller size (without the new properties). Or do you know the sizes of all structures by hearth?

Martin.
That's probably why they put it there in the first place: to remain backwards compatible.

The old version of the structures should always remain available, even
if they are not present on new windows headers. This way we will be
doing a better job then windows headers are doing.

New strutures should have a different name from the old ones.

And we would need to create overloaded versions of all calls that use
these structures; I don't think that is a good proposition, it's a maintenance nightmare.

I don't see why we should be holier than the pope. Microsoft should have done
things the proper way and intruduce XyzEX versions of their records. Sometimes
they do, sometimes they don't; They're simply not being very consequent...

Michael.


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to