Re: C++ integral types on 64-bit Windows

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Arnaud Debaene (adebaene_at_club-internet.fr)
Date: 04/03/04

  • Next message: Bonj: "Re: How to write text on command window"
    Date: Sat, 3 Apr 2004 22:03:07 +0200
    
    

    George wrote:
    > MerkX Zyban,
    >
    > Let the DWORD to be a 32-bit everywhere,
    > but why 'long' should be a 32-bit integer under a 64-bit platform?
    > And what about portability across non-windows platforms (all of them
    > have 64-bit long) ?
    > It makes 'long' unusable at all !

    "long" is a C type, and C standard only prescribes *minimum* size
    requirements for primitive types (it does it indirectly by specifying
    minimum ranges of values). Therefore, anyone who say that long is >= 32 bits
    is right.

    Arnaud
    MVP - VC


  • Next message: Bonj: "Re: How to write text on command window"

    Relevant Pages

    • Re: C++ integral types on 64-bit Windows
      ... Let the DWORD to be a 32-bit everywhere, ... And what about portability across non-windows platforms (all of them have ... portable across all Windows platforms to date. ...
      (microsoft.public.vc.language)
    • Re: C++ integral types on 64-bit Windows
      ... So wouldn't a DWORD always be 4 bytes? ... "MerkX Zyban" wrote in message ... In Win16 it's a 32 bit unsigned long. ... > Win16 they would have never introduced DWORD, ...
      (microsoft.public.vc.language)