{"id":1410,"date":"2014-11-26T15:45:46","date_gmt":"2014-11-26T07:45:46","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1410"},"modified":"2014-11-26T15:45:46","modified_gmt":"2014-11-26T07:45:46","slug":"vc-%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e7%9a%84%e4%b8%8b%e4%bc%a0%e4%b8%8b%e8%bd%bd%e7%9a%84%e8%bf%9b%e5%ba%a6%e6%98%be%e7%a4%ba-%e8%87%aamsdn","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1410","title":{"rendered":"vc-\u5b9e\u73b0\u6587\u4ef6\u7684\u4e0b\u4f20\u4e0b\u8f7d\u7684\u8fdb\u5ea6\u663e\u793a-\u81eamsdn"},"content":{"rendered":"
\r\n\/\/\u6211\u7ed9\u4e2aFTP\u4e0b\u8f7d\u7684\u63d0\u793a\u5427\uff1a\r\nCInternetSession session;\r\nCFtpConnection *pFtp=session.GetFtpConnection(FTP\u670d\u52a1\u5668\u5730\u5740,\u7528\u6237\u540d,\u5bc6\u7801);\r\nCInternetFile *pFtpFile=pFtp->OpenFile(\u6587\u4ef6\u8def\u5f84);\r\n\r\nCFile file;\r\nint DownLength=0;\/\/\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u7684\u6570\u636e\u957f\u5ea6\r\nif(\u76ee\u7684\u76ee\u5f55\u4e0b\u6ca1\u6709\u6307\u5b9a\u6587\u4ef6)\/\/\u4ece\u5934\u5f00\u59cb\u4e0b\u8f7d\r\n{\r\n file.Open(\u76ee\u7684\u6587\u4ef6\u8def\u5f84\uff0cCFile::modeCreate|CFile::modeWrite);\r\n}\r\nelse\/\/\u65ad\u70b9\u7eed\u4f20\r\n{\r\n file.Open(\u76ee\u7684\u6587\u4ef6\u8def\u5f84\uff0cCFile::modeWrite);\r\n file.SeekToEnd();\r\n DownLength=file.GetLength();\r\n pFtpFile->Seek(DownLength,CFile::begin);\r\n}\r\nint SrcLength=pFtpFile->GetLength();\r\nwhile(DownLength\n \u6e90\u65b9\u5730\u5740\uff1a
\nhttp:\/\/bbs.csdn.net\/topics\/50249142<\/p>\n","protected":false},"excerpt":{"rendered":"\/\/\u6211\u7ed9\u4e2aFTP\u4e0b\u8f7d\u7684\u63d0\u793a\u5427\uff1a CInternetSession session; CFtpConnection *pFtp=session.GetFtpConnection(FTP\u670d\u52a1\u5668\u5730\u5740,\u7528\u6237\u540d,\u5bc6\u7801); CInternetFile *pFtpFile=pFtp->OpenFile(\u6587\u4ef6\u8def\u5f84); CFile file; int DownLength=0;\/\/\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u7684\u6570\u636e\u957f\u5ea6 if(\u76ee\u7684\u76ee\u5f55\u4e0b\u6ca1\u6709\u6307\u5b9a\u6587\u4ef6)\/\/\u4ece\u5934\u5f00\u59cb\u4e0b\u8f7d { file.Open(\u76ee\u7684\u6587\u4ef6\u8def\u5f84\uff0cCFile::modeCreate|CFile::modeWrite); } else\/\/\u65ad\u70b9\u7eed\u4f20 { file.Open(\u76ee<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[250,144,251,252],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1410"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1410"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":1411,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1410\/revisions\/1411"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}