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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 04/01/04


Date: Thu, 1 Apr 2004 07:45:38 -0800

George wrote:
> "Carl Daniel [VC++ MVP]"
> <cpdaniel_remove_this_and_nospam@mvps.org.nospam> wrote in message
> news:#2P03l$FEHA.2612@TK2MSFTNGP09.phx.gbl...
>> George wrote:
>>> Hi
>>>
>>> Can anybody explain to me how the C++ integral types are scaled
>>> between 32-bit and 64-bit Windows ?
>>> I'm especially interested in 'int' and 'long'.
>>
>> int and long both remain 32 bits on 64 bit windows.
>
> It is very strange,
> because most of other platforms (e.g. Linux, FreeBSD with gcc)
> have 64-bit 'long' on a 64-bit architecture (e.g. IA64).
>
> In my opinion it is righteous.
>
> What is the reason to have 32-bit 'long' on 64-bit platform?

Improved portability from 32 bit windows. Do some research - there are lots
of articles out there about 64 bit windows and why they chose the particular
model they did. Most of the articles will be from 2000 or so (perhaps
earlier).

-cd



Relevant Pages

  • Re: Vista - stillborn?
    ... Not to mention all the screenshots and articles written about it. ... "Because (unlike most wintrolls WRT the mac) I've actually used older ... You insist that "Wintrolls" use a Mac before they form their opinion ... I have used Windows - albeit of an older version - so I know ...
    (comp.sys.mac.advocacy)
  • Re: Vista - stillborn?
    ... I haven't used any kind of windows since ... Yet you base your opinion of the current version off of an obsolete ... Not to mention all the screenshots and articles written about it. ... "Because (unlike most wintrolls WRT the mac) I've actually used older ...
    (comp.sys.mac.advocacy)
  • Re: Vista - stillborn?
    ... C Lund wrote: ... I haven't used any kind of windows since ... Yet you base your opinion of the current version off of an obsolete ... Not to mention all the screenshots and articles written about it. ...
    (comp.sys.mac.advocacy)
  • Re: Zero Width Pen Draws through clipped region...
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Exclude the rectangle from the graphics clip region. ... IF you use a pen that is more than one pixel the clipping works ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Partial zooming using transform
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Is there any "good way" of figuring out the dimensoions of the transformed image to get the size of the border I need to draw? ... the "object" will be a square or a slice of pixels with its own individual zoom and transform. ...
    (microsoft.public.dotnet.framework.drawing)