B
Boki
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(System::Object^ sender,
System::EventArgs^ e) {
CultureInfo^ myCI = gcnew CultureInfo( "en-US" );
Calendar^ myCal = myCI->Calendar;
// Gets the DTFI properties required by GetWeekOfYear.
CalendarWeekRule myCWR = myCI->DateTimeFormat->CalendarWeekRule;
DayOfWeek myFirstDOW = myCI->DateTimeFormat->FirstDayOfWeek;
this->textBox1->Text = myCal->GetWeekOfYear( DateTime::Now, myCWR,
myFirstDOW ) ;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
};
/************* CODE END ************/
Best regards,
Boki.
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(System::Object^ sender,
System::EventArgs^ e) {
CultureInfo^ myCI = gcnew CultureInfo( "en-US" );
Calendar^ myCal = myCI->Calendar;
// Gets the DTFI properties required by GetWeekOfYear.
CalendarWeekRule myCWR = myCI->DateTimeFormat->CalendarWeekRule;
DayOfWeek myFirstDOW = myCI->DateTimeFormat->FirstDayOfWeek;
this->textBox1->Text = myCal->GetWeekOfYear( DateTime::Now, myCWR,
myFirstDOW ) ;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
};
/************* CODE END ************/
Best regards,
Boki.