C语言 获取系统临时目录并获取临时文件名
2012-12-08 20:32 每天努力一点点 阅读(622) 评论(0) 编辑 收藏 举报 char tempFileName[MAX_PATH];
char sysTempPath[MAX_PATH+1];
GetTempPath (MAX_PATH,sysTempPath);
GetTempFileName(sysTempPath,"rar",0,tempFileName);
char sysTempPath[MAX_PATH+1];
GetTempPath (MAX_PATH,sysTempPath);
GetTempFileName(sysTempPath,"rar",0,tempFileName);