Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
char *buff = strdupWtoA(s);
static const char *format = "%d-%d-%d %d:%d:%d.%d";
if(sscanf( buff, format, &d->year, &d->month, &d->day, &d->hour, &d->minute, &d->second, &d->fraction) != 7)
There shouldn't be any reason to convert to Ansi, simply scan the Unicode string.