Hey, I am making a forums application in which when you press a button, the system date displays in a text box. I believe my code is right (it compiles without error), but when I press the button the wordTrue prints in the box instead of the date. Here is the code:
private: System::Void NewEntry_Click(System::Object^ sender, System::EventArgs^ e) { time_t rawtime; struct tm * timeinfo; time ( &rawtime ); this->LogBox->Text = LogBox->Text + "\r\n" + Convert::ToString(ctime(&rawtime)) + ":"; }
Can anyone fix the code please :)
Running Visual C++ 2010.