I'm trying to write a program that will simply move a file from "FILENAME.TXT" to "CURRENTDATE-CURRENTTIME-FILENAME.txt" and am having problems.
The error I'm getting is cannot convert from char to char[]
Here is my simple code:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
time_t now;
char the_date[12];
the_date[0] = '\0';
now = time(NULL);
strftime(the_date, 12, "%d_%m_%Y", gmtime(&now));
char message[] = the_date[12];
char oldname[] ="C:\\MilSequence.avi";
//char newname[] = &the_date;
//rename( oldname , newname );
}