> > Cardinal on i386 Mac apparently cannot handle values like
> > HKEY_CURRENT_USER which is $80000001.
> >
>
> I don't understand. Cardinal and DWORD are both 32 bits
> unsigned integers.
I don't understand either, but the facts are that DWORD is always
the standard type to use in a Windows API context, and that
assigning a DWORD value such as the above mentioned to a Cardinal
variable produces a range check error. There is probably some
compiler bug there, but in this case we should use consistent
types anyway, which means always DWORD, never Cardinal, when you
are working with or simulating a Windows API.
DWORD is defined as LongWord, so it is a different compiler type.
Kind Regards,
Tobias Giesen
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives