Few basic c++ questions regarding 64 bit programming

Discussion in 'Windows 64 Bit' started by D, Apr 19, 2006.

  1. D

    D Guest

    what is the range of the largest numeric data type available (using 64 bit
    technology) ?

    If I do this (on xp32)

    __int64 g = 418235339844242000000;

    I get

    error C2177: constant too big

    Will compiling on xp64 solve this? I looked but don't see a 64 bit data type
    ranges chart.

    I know Visual studio 2003 can compile for 64 when certain flags are set so I
    think if I set those flags I should be able to compile but just not be able
    to run it (unless I have xp64) . is that correct?


    Next, is stl available for 64 bit development? I use a map to store those
    large numbers but I wanted to be sure its avaible before I go and get xp64.


    Thanks alot !!!!
     
    D, Apr 19, 2006
    #1
    1. Advertisements

  2. D

    D Guest

    Sorry , didn't mean to double post this question, I was posting it to a
    developer qroup but forgot to change the group name.
     
    D, Apr 19, 2006
    #2
    1. Advertisements


  3. http://msdn2.microsoft.com/en-US/library/296az74e(VS.80).aspx

    Maximum value for a variable of type unsigned __int64 =
    18446744073709551615 (0xffffffffffffffff)

    As for STL, sorrry, don't know it's horrible, and I avoid it like the
    plague... :)
     
    Mark Gillespie, Apr 20, 2006
    #3
  4. D

    D Guest


    http://msdn2.microsoft.com/en-US/library/296az74e(VS.80).aspx

    Maximum value for a variable of type unsigned __int64 =
    18446744073709551615 (0xffffffffffffffff)

    Thanks !! That seems big enough for what I need to do.

    As for STL, sorrry, don't know it's horrible, and I avoid it like the
    plague... :)

    Why is that ?
     
    D, Apr 21, 2006
    #4
  5. The syntax in places is horrible, and looks very foriegn compared to
    regular C/C++/MFC/ATL
     
    Mark Gillespie, Apr 21, 2006
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.