摘要:
错误发生在这几句部分:struct tm *ltime;char timestr[16];ltime=localtime(&header->ts.tv_sec);错误提示为:error C2664: “localtime”: 不能将参数 1 从“const long *__w64 ”转换为“const time_t *”分析:VC6.0里,time_t的定义是:typedef long time_t;其实也就是long,所以可以通用。但在VS2005中,不一样了:如何没有定义_USE_32BIT_TIME_T时typedef __time64_t time_t;typedef _ 阅读全文