<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>零度x&#039;s blog &#187; FTP</title>
	<atom:link href="http://www.lingdux.com/tag/ftp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lingdux.com</link>
	<description>Take it slowly,it&#039;s OK,it&#039;s OK.</description>
	<lastBuildDate>Wed, 04 Aug 2010 01:09:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>vc实现FTP上传文件</title>
		<link>http://www.lingdux.com/2010/143.html</link>
		<comments>http://www.lingdux.com/2010/143.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 17:58:15 +0000</pubDate>
		<dc:creator>零度x</dc:creator>
				<category><![CDATA[VC学习]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[VC]]></category>
		<category><![CDATA[上传]]></category>

		<guid isPermaLink="false">http://www.lingdux.com/?p=143</guid>
		<description><![CDATA[CFtpConnection *pconnection;

 CInternetSession *session=new CInternetSession(AfxGetAppName(),1,PRE_CONFIG_INTERNET_ACCESS);

 try

<span class="readmore"><a href="http://www.lingdux.com/2010/143.html" title="vc实现FTP上传文件">阅读全文——共461字</a></span>]]></description>
			<content:encoded><![CDATA[<p>CFtpConnection *pconnection;<br />
 CInternetSession *session=new CInternetSession(AfxGetAppName(),1,PRE_CONFIG_INTERNET_ACCESS);<br />
 try<br />
 {<br />
  pconnection=session-&gt;GetFtpConnection(FtpAddress,UserName,Password);<br />
 }<br />
 catch(CInternetException *pEx)<br />
 {<br />
  WCHAR errror[1024]={0};<br />
  if(pEx-&gt;GetErrorMessage(ERROR,1024))<br />
   MessageBox(ERROR);<br />
  else<br />
   MessageBox(L&#8221;出现异常&#8221;);<br />
 }<br />
 if(pconnection-&gt;PutFile(L&#8221;C:\\ip.txt&#8221;,path))<br />
  MessageBox(L&#8221;上传成功！&#8221;);<br />
 else<br />
  MessageBox(L&#8221;上传失败！&#8221;);<br />
 pconnection-&gt;Close();</p>
<p><span id="more-143"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lingdux.com/2010/143.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
