{"blog_title":"\u5099\u5fd8\u9332","title":"C++\u3067\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5","author_url":"https://blog.hatena.ne.jp/kagasu/","provider_name":"Hatena Blog","author_name":"kagasu","image_url":null,"blog_url":"https://kagasu.hatenablog.com/","version":"1.0","provider_url":"https://hatena.blog","height":"190","published":"2021-02-13 15:12:07","categories":["C/C++"],"url":"https://kagasu.hatenablog.com/entry/2021/02/13/151207","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2021%2F02%2F13%2F151207\" title=\"C++\u3067\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cC++\u3067\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u3084\u308a\u65b9 1. \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f #include <Windows.h> #include <iostream> void copy(const wchar_t *str) { auto len = (wcslen(str) + 1) * 2; auto hMem = reinterpret_cast<HGLOBAL>(GlobalAlloc(GHND, len)); if (hMem == nullptr) { return; } auto pMem = reinterpret_cast<w\u2026","type":"rich"}