⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpdownloaddlg.htm

📁 HTTP下载程序。类似IE中的下载界面
💻 HTM
字号:
<html>

<head>
<title>CHttpDownloadDlg v1.03</title>
</head>

<body>

<p><font face="Arial"><strong><font color="#000000" size="6">CHttpDownloadDlg v1.</font></strong></font><strong><font
color="#000000" size="6" face="Arial">03</font></strong></p>

<p><font face="Arial">Welcome to CHttpDownloadDlg, an MFC dialog which performs HTTP downloads
similar to the Internet Explorer download dialog as shown below:</font></p>

<p><img border="0" src="httpdownloaddlg.gif"></p>

<table border="0">
<TBODY>
  <tr>
    <td><font size="5" face="Arial"><strong>Contents</strong></font></td>
  </tr>
  <tr>
    <td><font face="Arial"><a href="#Features">Features</a></font></td>
  </tr>
  <tr>
    <td><font face="Arial"><a href="#History">History</a></font></td>
  </tr>
  <tr>
    <td><font face="Arial"><a href="#Usage">Usage</a></font></td>
  </tr>
  <tr>
    <td><font face="Arial"><a href="#Contact">Contacting the Author</a></font></td>
  </tr>
</TBODY>
</table>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><font face="Arial"><big><a name="History"></a></big><font color="#000000" size="5"><strong>History</strong></font></font></p>

<p><strong><font face="Arial"><font size="3"><font color="#000000">V1.0 (14
November 1999)</font></font>
</font></strong>

<ul>
  <li><font face="Arial">Initial Public Release</font></li>
</ul>

<p><strong><font color="#000000" face="Arial">V1.01 (15
November 1999)</font></strong>

<ul>
  <li><font face="Arial">Updated documentation to refer to what rc resources are
    needed by the class.</font></li>
  <li><font face="Arial">Renamed all resources used from
    &quot;ASYNC_DOWLOAD&quot; to include &quot;HTTPDOWNLOAD&quot;.</font></li>
  <li><font face="Arial">Now handles HTTP error 407 (Proxy Authentication) and
    HTTP error 401 (Server Authentication). You are prompted with a password
    dialog when either of these&nbsp; forms of authentication are required.</font></li>
  <li><font face="Arial">Sample program now allows you to specify the URL to
    download from aswell as the file to download into and the username and
    password to connect with.</font></li>
  <li><font face="Arial">The download file is now deleted if the download was
    aborted or if some other error occurs during the download.</font></li>
  <li><font face="Arial">Parsing of URL will now work where &quot;http://&quot;
    is not explicitely specified.</font></li>
  <li><font face="Arial">Improved the general look and feel of the demo app and
    called it &quot;HTML File Downloader&quot;.</font></li>
</ul>

<p><strong><font color="#000000" face="Arial">V1.02 (29
November 1999)</font></strong>

<ul>
  <li><font face="Arial">Fixed a number of compiler warnings and errors when
    used in VC++ 6.0.</font></li>
</ul>

<p><strong><font color="#000000" face="Arial">V1.03 (25 January 2000)</font></strong>

<ul>
  <li><font face="Arial">Fixed a problem where server authentication was not being detected correctly,
    while proxy authentication was being handled.</font></li>
  <li><font face="Arial">Updated the way and periodicity certain UI controls are updated during the                          HTTP download.</font></li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><font face="Arial"><a name="Usage"></a><font color="#000000" size="5"><strong>Usage</strong></font></font></p>

<p><font face="Arial">To use CHttpDownloadDlg in your project simply include
HttpDownloadDlg.cpp/h from
the test application in your application and #include &quot;HttpDownloadDlg.h&quot; in whichever
files you want to use the class in. You should also copy over all the
&quot;IDS_HTTPDOWNLOAD_..&quot; string resources, the IDD_HTTPDOWNLOAD dialog
resource and the IDR_HTTPDOWNLOAD_ANIMATION &quot;avi&quot; resource. To bring up the dialog to download a
specific file, just use some code like the following:</font></p>

<p><font face="Arial">  CHttpDownloadDlg dlg;<br>
  dlg.m_sURLToDownload = _T(&quot;http://www.some-site.com/somefile.ext&quot;);<br>
  dlg.m_sFileToDownloadInto = _T(&quot;c:\\somfile.ext&quot;);<br>
if (dlg.DoModal() == IDOK)<br>
&nbsp;&nbsp;&nbsp; AfxMessageBox(&quot;File was downloaded successfully&quot;);</font></p>

<p>&nbsp;</p>

<p><font face="Arial">You should also have a look at the CInetDownloadDlg::OnDownload()
code in the sample application.</font></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><font face="Arial"><big><big><a name="Contact"></a></big></big><font color="#000000"
size="5"><strong>Contacting the Author</strong></font></font></p>

<p><font color="#000000" size="3" face="Arial">PJ Naughter<br>
Email: </font><font color="#000000" size="3" face="Arial"><a href="mailto:pjn@indigo..ie">pjn@indigo..ie</a><br>
Web: </font><font color="#000000" size="3" face="Arial"><a href="http://indigo.ie/~pjn">http://indigo.ie/~pjn</a><br>
25 January 2000</font></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -