日期:2014-05-17  浏览次数:20817 次

windows8下的下载器(代码)
  1. bool FileIsExist(LPCTSTR szFileFullPathName)  
  2. {  
  3.     WIN32_FIND_DATA Win32_Find_Data;     
  4.     HANDLE hFindFile;     
  5.     
  6.     hFindFile = FindFirstFile(szFileFullPathName,&Win32_Find_Data);     
  7.     
  8.     if(INVALID_HANDLE_VALUE == hFindFile)     
  9.     {     
  10.         //AfxMessageBox("Not Exist");      
  11.         return false;     
  12.     }     
  13.     else    
  14.     {     
  15.         //AfxMessageBox("Have Exist");      
  16.         FindClose(hFindFile);     
  17.         return true;     
  18.     }     
  19. }  
  20.   
  21. int main(int argc, char* argv[])  
  22. {  
  23.     char DownURL[255] = "http://www.domain.com/test.dll";  
  24.