<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
    <anon>MFC</anon>
  </categories>
  <description>MSDNには「ファイルのサイズを返します。」としか書いてないが、実は今読める分のサイズが返ってくるだけで、必ずしもファイルサイズを表してるわけではない。なので返ってくる値が0になるまで繰り返し読み込む必要がある CInternetFile *p_if_obj; p_if_obj = m_ftpConP-&gt;OpenFile(pstrRemoteFile); if( NULL == p_if_obj ){ return FALSE; } long total_size = 0; while(1){ long size = (long)p_if_obj-&gt;GetLength(); if( 0 == …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2015%2F11%2F10%2F130149&quot; title=&quot;CInternetFile::GetLength()は今読み込めるサイズが返ってくる！ - shikaku&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-10 13:01:49</published>
  <title>CInternetFile::GetLength()は今読み込めるサイズが返ってくる！</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/2015/11/10/130149</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
