<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>WaterFalls</author_name>
  <author_url>https://blog.hatena.ne.jp/WaterFalls/</author_url>
  <blog_title>１分技術ブログ</blog_title>
  <blog_url>https://waterfalls.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>MFC</anon>
  </categories>
  <description>概要 C++でカレントディレクトリを取得して、その上の親ディレクトリパスを取得する。 「..¥」を末尾に付与して１つ上のパスに移動する方法は 私の場合、別処理で「.」から拡張子位置を判断する処理があったため使えなかった。 コード char buf[MAX_PATH]; // カレントディレクトリを取得 GetCurrentDirectoryA(MAX_PATH, buf); // 後ろから¥を探して見つかった位置に0を入れる *(strrchar(buf, '¥¥') + 1) = 0; この場合、「c:¥hoge¥fuga¥」となる。 「c:¥hoge¥fuga」としたい場合は以下にする。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaterfalls.hatenablog.com%2Fentry%2F2019%2F06%2F28%2F234156&quot; title=&quot; [C++][MFC] C++(VC++)でカレントディレクトリの１つ上のパスを取得する - １分技術ブログ&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>https://images-fe.ssl-images-amazon.com/images/I/41ZfPu-9ArL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-28 23:41:56</published>
  <title> [C++][MFC] C++(VC++)でカレントディレクトリの１つ上のパスを取得する</title>
  <type>rich</type>
  <url>https://waterfalls.hatenablog.com/entry/2019/06/28/234156</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
