Programming - cpueblo.com

임시 파일(TEMP FILE) 파일명 생성하기 - GetTempFileName(), GetTempPath()


글쓴이 : 유광희 날짜 : 2002-08-13 (화) 15:50 조회 : 12225

String GetTempFileName(String File)
{
	char TempPath[256];
	char TempFile[256];
	GetTempPath(256, TempPath);
	GetTempFileName(TempPath, File.c_str(), GetTickCount(), TempFile);

	return TempFile;
}
GetTempPath() 와 GetTempFileName() 은 윈도우 API 함수이므로 VC 에서도 약간의 수정으로 사용가능합네당