Re: Moving from C++ to VC++



Victor Bazarov wrote:
> Severian [MVP] wrote:
>> [...]
>> For example, DWORD translates to 'unsigned long', which is a 32-bit
>> integer on all Win32/Win64 platforms.
>
> 'long' is 32 bits on a 64-bit platform? Wow... No, really? I am
> blown away, honestly.

On 64 bit Windows, yes. Many 64-bit *nix's chose to make long be 64 bits.

This decision was based on a survey of several million lines of code that
revealed that a great deal more code would be broken by chanigng long to 64
bits than would benefit from the change.

-cd


.



Relevant Pages

  • Re: Moving from C++ to VC++
    ... >> For example, DWORD translates to 'unsigned long', which is a 32-bit ... >> integer on all Win32/Win64 platforms. ... >blown away, honestly. ... Microsoft MVP, Windows SDK ...
    (microsoft.public.vc.language)
  • Re: Moving from C++ to VC++
    ... > For example, DWORD translates to 'unsigned long', which is a 32-bit ... > integer on all Win32/Win64 platforms. ... blown away, honestly. ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: Moving from C++ to VC++
    ... For example, DWORD translates to 'unsigned long', which is a 32-bit integer on all Win32/Win64 platforms. ... blown away, honestly. ... Alan J. McFarlane ...
    (microsoft.public.vc.language)