{"image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/r/replication/20150329/20150329232141.png","url":"https://replication.hatenablog.com/entry/2015/03/30/100000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Freplication.hatenablog.com%2Fentry%2F2015%2F03%2F30%2F100000\" title=\"\u3010VC++\u3011GetLastError()\u306e\u30b3\u30fc\u30c9\u304b\u3089\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b - \u5c0f\u3055\u3044\u9803\u306f\u30a8\u30e9\u547c\u5438\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"\u306f\u3058\u3081\u306b GetLastError()\u306e\u30b3\u30fc\u30c9\u304b\u3089\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002 GetLastError()\u306e\u30b3\u30fc\u30c9\u304b\u3089\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b #include \"stdafx.h\" #include <Windows.h> int _tmain(int argc, _TCHAR* argv[]) { LPTSTR lpMessageBuffer = NULL; // \u8abf\u3079\u305f\u3044\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9 SetLastError(1114); FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SY\u2026","categories":["C++"],"title":"\u3010VC++\u3011GetLastError()\u306e\u30b3\u30fc\u30c9\u304b\u3089\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/replication/","published":"2015-03-30 10:00:00","blog_url":"https://replication.hatenablog.com/","height":"190","author_name":"replication","blog_title":"\u5c0f\u3055\u3044\u9803\u306f\u30a8\u30e9\u547c\u5438","width":"100%"}