none
64 bit in Visual Studio 2010

    Question

  • when can i use 64 bit word in visual studio 2010 ? I think about Visual C ++ .
    Wednesday, August 25, 2010 12:21 PM

Answers

All replies

  • when can i use 64 bit word in visual studio 2010 ? I think about Visual C ++ .
    What do you mean exactly?
     
    If you compile for x64, then all pointers, and size_t, and various other things become 64-bit. But int and long are still 32-bit.
     
    A carefully written x86 program will compile correctly for x64, but if you have implicit conversions between (say) int and size_t you will have to make some changes.
     

    David Wilkinson | Visual C++ MVP
    Wednesday, August 25, 2010 3:15 PM
  • Thats words are on increase ; kind of type  can I to use as 64 bit ; i think about type as int , long , account types . Can i works for it in express version  ?

    Yours Sincerely

    Rafał Bator

    Wednesday, August 25, 2010 5:06 PM
  • What kind of type can i works instead int and long ?

    Yours Sincelery

    Rafał Bator

    Wednesday, August 25, 2010 5:08 PM
  • Data types of long long are equivalent to __int64. It can hold a 64-bit integer. This is true even for standard 32-bit programs.

    It's not clear from your question whether you need to compile an x64 program. If you need to, instructions are found here: How to: Configure Visual C++ Projects to Target 64-Bit Platforms

    There appears to be specific issues related to Visual Studio Express 2010. See this discussion:

    http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/4ce313a3-cb5f-43fc-bbb9-50233f8ed11b

    Wednesday, August 25, 2010 5:33 PM
  • What kind of type can i works instead int and long ?
    In Visual C++ you can use INT64 or __int64.
     

    David Wilkinson | Visual C++ MVP
    Wednesday, August 25, 2010 5:34 PM
  • I have event : Button event

     

     

    int a[5][4];

                                   a[0][0]=Convert::ToInt32(textBox1->Text);

                                  

    textBox21->Text=a[0][0].toString();

     

     

    How walk from int32 to int64 in this example ? I have express version .

    Wednesday, August 25, 2010 7:56 PM
  • I have event : Button event
     
    int a[5][4];
     
                                   a[0][0]=Convert::ToInt32(textBox1->Text);
     
    textBox21->Text=a[0][0].toString();
     
    How walk from int32 to int64 in this example ? I have express version
    Use ToInt64 and a 64-bit data type.
     
    Another 64-bit data type in Visual C++ is long long.
     

    David Wilkinson | Visual C++ MVP
    Wednesday, August 25, 2010 8:04 PM
  • that is example . Obviously toString is mistake it must be big letter and ToString() instead toString .

    Yours Yincerely

     

    Rafał Bator

    Wednesday, August 25, 2010 8:06 PM
  • //think You about that ? :

    int64 a[5][4];

    a[0][0]=Convert::ToInt64(textBox1->Text);

    textBox21->Text=a[0][0].ToString();

    // i have VC++ Express from Visual Studio 2010

    //Yours Sincerely

    //Rafał Bator

     

    Thursday, August 26, 2010 10:40 AM
  • //think You about that ? :
     
    int64 a[5][4];
     
    a[0][0]=Convert::ToInt64(textBox1->Text);
     
    textBox21->Text=a[0][0].ToString();
    Well, does it work?
     
    Shouldn't it be __int64, not int64?
     

    David Wilkinson | Visual C++ MVP
    Thursday, August 26, 2010 10:57 AM
  • //think You about that ? :

    _int64 a[5][4];

    a[0][0]=Convert::To_int64(textBox1->Text);

    textBox21->Text=a[0][0].ToString();

    // i have VC++ Express from Visual Studio 2010 Express

    //Yours Sincerely

    //Rafał Bator

    Thursday, August 26, 2010 12:25 PM
  • i have it :

    1>------ Build started: Project: Gauss1, Configuration: Debug Win32 ------

    1> Gauss1.cpp

    1>c:\users\rafal\documents\visual studio 2010\projects\gauss1\gauss1\Form1.h(481): error C2039: 'To_int64' : is not a member of 'System::Convert'

    1> c:\program files (x86)\reference assemblies\microsoft\framework\.netframework\v4.0\mscorlib.dll : see declaration of 'System::Convert'

    1>c:\users\rafal\documents\visual studio 2010\projects\gauss1\gauss1\Form1.h(481): error C3861: 'To_int64': identifier not found

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    Iput it below .

    Yours Sincerely

     

    Rafał Bator

    Thursday, August 26, 2010 12:35 PM
  • in time where int and Int32 is a member of class System::Convert , _int64 and To_int64 is not .

     

    Yours Sincerely

    Thursday, August 26, 2010 12:41 PM
  • //ok , all right .

    Declaration _int64 a[][] ;

    and Convert::Toint64(textBox1->Text);

    //and all right

     

    Yours Sincerely

    Rafał Bator

    Thursday, August 26, 2010 1:02 PM
  • when can i use in thread above 4 GB Ram /thread , e.g 32 GB , or more e.g 64 GB Ram  , e.g for solution of array in this size 64 : GB Ram

    I have VC++ Express in Visual Studio 2010 express , need I other ?

     

     

    Yours Sincerely

    Rafal Bator

    Thursday, August 26, 2010 3:34 PM
  • If you are intending to use large quantities of RAM, then you must recompile using the x64 compiler. You cannot use Visual Studio C++ Express edition for this. You will need to upgrade to Professional Edition.
    Thursday, August 26, 2010 3:48 PM