__int64

This is a discussion on __int64 within the C++ Programming forums, part of the General Programming Boards category; How can I use __int64 in MS-VC++6 ? Something like Code: #include <iostream> using namespace std; main() { unsigned __int64 ...

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231

    Arrow __int64

    How can I use __int64 in MS-VC++6 ?
    Something like
    Code:
    #include <iostream>
    using namespace std;
    
    main()
    {
           unsigned __int64 u64;
           cin>>u64;
           u64++;
           cout<<u63;
           return 0;
    }
    I need it for some calculations.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Something like
    You might be missing a headerfile, but otherwise it seems fine. What's wrong with it ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Some of the STL in VC++ 6 chokes when using __int64.

    You could look for an alternate STL, or a wiser choice would be to upgrade. VC6 is rather old now, and as VC2005 Express can be downloaded free, there's not many excuses not to switch

    http://msdn.microsoft.com/vstudio/ex...c/default.aspx

  4. #4
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    VC6 is rather old now, and as VC2005 Express can be downloaded free, there's not many excuses not to switch
    I have an excuse: Internet speed is too low, cost is too high.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  5. #5
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    There is no way to do it with VC6? I need it today.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  6. #6
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by Fordy
    You could look for an alternate STL...
    http://www.google.com/search?q=STL%20download
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21