Vote UpVote

Why PDWORD is not a pointer to DWORD

The Programming Works – Once upon a time the Delphi team lead decided that Delphi should contain declarations of C++ types like unsigned long for the sake of better C++ compatibility. So he has written type CppULongInt = LongWord; No, that is not good thought the team lead. Delphi’s LongWord is a 32-bit type while the C++’s unsigned long is a platform-dependent type. So let us declare CppULongInt as a distinct type instead of an alias type: type CppULongInt = type LongWord; That is better. Now how about DWORD type? It is declared in Windows headers as typedef unsigned long DWORD; So for ...
Favorite? Off-Topic? Serg @ 2014-09-13 12:35


Visits: 1042
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)