integer to string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boki

    integer to string

    Hi All,

    I think it should be very easy, but I am new to c++.net ( original is
    c# / vb )

    I need something like:

    ..ToString()

    or

    val( string_B )

    another question, in c# it is clear to enter code after double click
    the compnents, how about C++ ? is that the same ? because I saw IDE
    shows .h file... not a .c file after double click a component ( ex:
    text box )

    Thanks.

    /*************** CODE BEGIN **********/
    private: System::Void button1_Click(S ystem::Object^ sender,
    System::EventAr gs^ e) {


    CultureInfo^ myCI = gcnew CultureInfo( "en-US" );
    Calendar^ myCal = myCI->Calendar;

    // Gets the DTFI properties required by GetWeekOfYear.
    CalendarWeekRul e myCWR = myCI->DateTimeForm at->CalendarWeekRu le;
    DayOfWeek myFirstDOW = myCI->DateTimeForm at->FirstDayOfWeek ;

    this->textBox1->Text = myCal->GetWeekOfYea r( DateTime::Now, myCWR,
    myFirstDOW ) ;
    ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^

    };
    /************* CODE END ************/

    Best regards,
    Boki.
  • David Lowndes

    #2
    Re: integer to string

    >by the way, I can't find out the execution file after build it...., I
    >didn't see the "Release" folder and there is no .exe file in debug
    >folder.
    Has it built successfully? Where does the build log indicate it's put
    it?

    Dave

    Comment

    • Boki

      #3
      Re: integer to string

      by the way, I can't find out the execution file after build it...., I
      didn't see the "Release" folder and there is no .exe file in debug
      folder.
      >
      Look in <solution root>\debug instead of <project root>\bin\relea se
      >
      I found that, I didn't change "Debug" to "Release"

      It looks if I build in "Debug", there will be no .exe file.

      thanks.

      Boki.

      Comment

      • Ben Voigt [C++ MVP]

        #4
        Re: integer to string

        Boki wrote:
        >>by the way, I can't find out the execution file after build it....,
        >>I didn't see the "Release" folder and there is no .exe file in debug
        >>folder.
        >>
        >Look in <solution root>\debug instead of <project root>\bin\relea se
        >>
        >
        I found that, I didn't change "Debug" to "Release"
        >
        It looks if I build in "Debug", there will be no .exe file.
        No, the *directory* is in a different location from where the C# compiler
        puts things. Sorry about conflating debug and release. Here is a more
        accurate instruction:

        Look in <solution root>\debug instead of <project root>\bin\debug
        Look in <solution root>\release instead of <project root>\bin\relea se
        >
        thanks.
        >
        Boki.

        Comment

        • Boki

          #5
          Re: integer to string

          Look in <solution root>\debug instead of <project root>\bin\debug
          Look in <solution root>\release instead of <project root>\bin\relea se
          >
          >
          Thanks.

          Boki.

          Comment

          Working...