Results 1 to 3 of 3

Thread: 64-bit integer?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    57
    I would like to make a 64-bit integer in MS VC++ 6.0, but the following code does not work:


    long long anyvariable;

    Compile Error: error C2632: 'long' followed by 'long' is illegal

    .......any ideas?

    PS I have a book that says this feature is contributed by the C99 specification. Does VC++ not support this?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    For VC++, use the __int64 type (2 underscores).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    57

    Thanks

    Thank you very much!

    You're the best!

    chilibean

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