{"url":"https://potisan-programming-memo.hatenablog.jp/entry/2020/11/07/170151","author_url":"https://blog.hatena.ne.jp/potisan/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","title":"C++ VariantToString\u306e\u623b\u308a\u5024\u306fCoTaskMem\u95a2\u4fc2","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","author_name":"potisan","categories":["C++","Windows"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F11%2F07%2F170151\" title=\"C++ VariantToString\u306e\u623b\u308a\u5024\u306fCoTaskMem\u95a2\u4fc2 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://potisan-programming-memo.hatenablog.jp/","description":"<propvarutil.h>\u306eVariantToString\u95a2\u6570\u306f\u65b0\u3057\u304f\u5272\u308a\u5f53\u3066\u305f\u30e1\u30e2\u30ea\u3092\u8fd4\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u30e1\u30e2\u30ea\u3092\u89e3\u653e\u3059\u3079\u304d\u304b\u3069\u3046\u304b\u306e\u8a18\u8f09\u304c\u4e00\u5207\u3042\u308a\u307e\u305b\u3093\u3002CoGetMalloc\u3067\u53d6\u5f97\u3057\u305fIMalloc\u306eGetSize\u306f\u6b63\u3057\u3044\u5024\u3092\u8fd4\u3059\u306e\u3067\u3001\u304a\u305d\u3089\u304fCoTaskMemFree\u95a2\u6570\u3067\u89e3\u653e\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u60f3\u50cf\u3057\u307e\u3059\u3002 \u306a\u304a\u3001PropVariantToStringAlloc\u95a2\u6570\u306fCoTaskMemFree\u95a2\u6570\u304c\u5fc5\u8981\u3067\u3042\u308b\u3068\u660e\u8a18\u3055\u308c\u3066\u3044\u307e\u3059\u3002 #pragma comment(lib, \"propsys.lib\") #define STRICT #include <Windows.h> #inc\u2026","type":"rich","width":"100%","height":"190","published":"2020-11-07 17:01:51","image_url":null}