<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>replication</author_name>
  <author_url>https://blog.hatena.ne.jp/replication/</author_url>
  <blog_title>小さい頃はエラ呼吸</blog_title>
  <blog_url>https://replication.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>はじめに GetLastError()のコードからエラーメッセージを取得するサンプルプログラムです。 GetLastError()のコードからエラーメッセージを取得する #include &quot;stdafx.h&quot; #include &lt;Windows.h&gt; int _tmain(int argc, _TCHAR* argv[]) { LPTSTR lpMessageBuffer = NULL; // 調べたいエラーコード SetLastError(1114); FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SY…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Freplication.hatenablog.com%2Fentry%2F2015%2F03%2F30%2F100000&quot; title=&quot;【VC++】GetLastError()のコードからエラーメッセージを取得する - 小さい頃はエラ呼吸&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>http://cdn-ak.f.st-hatena.com/images/fotolife/r/replication/20150329/20150329232141.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-30 10:00:00</published>
  <title>【VC++】GetLastError()のコードからエラーメッセージを取得する</title>
  <type>rich</type>
  <url>https://replication.hatenablog.com/entry/2015/03/30/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
