I have to write a time and date to a ini file and I've come up with this but there are some problems and i'm shure that is something easy but I can't get it rite:
CString s = t.Format( "%A, %B %d, %Y" );
sprintf(buf, "%s", s);
WritePrivateProfileString("Time", "Time", buf, "Presets\\" + name + ".ini");
Time=Thursday, January 15, 1970
Can anyone tel me why I do not get the write time and date?
I've not mutch point but this IS imptant.
many greets and respect to who can help me