CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: 64 bit

  1. #1
    Join Date
    Feb 2001
    Posts
    872

    64 bit

    when can we expect 64 bits to arrive? What are the determinants?

    And this old question again, why INT and not int?

    INT is defined in some windows specific header? And prolly not ANSI compliant and therefore not portable to UNIX box?




  2. #2
    Join Date
    Feb 2002
    Posts
    81

    Re: 64 bit

    INT is not a built in type of C++. However, it is defined in some window header files, for example (but not only windows).



  3. #3
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: 64 bit

    >> when can we expect 64 bits to arrive? What are the determinants?

    I never looked that close so I do not know...


    >> And this old question again, why INT and not int?
    >> INT is defined in some windows specific header? And prolly not ANSI compliant and therefore not
    >> portable to UNIX box?

    Even if it sounds strange but this is usually used for e.g. portability reasons. Right now 'INT' is defined in Windows as the built-in type 'int' which is 32-bit. If you are using 'INT' instead of 'int' within your application then you can easily port it to another platform...think about porting your application to a platform where 'int' is defined only 16-bit. Usually you would have to go through your complete source code to change all 'int' to e.g. 'long'. Using 'INT' you would only change one place...the definition of 'INT'. That's only one example why those defines exist...

    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured