{"blog_url":"https://potisan-programming-memo.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/potisan/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2019/07/05/190331","provider_name":"Hatena Blog","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","description":"IUnknown\u3092\u81ea\u524d\u3067\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3068ATL\u30e1\u30e2\u30ea\u7ba1\u7406\u30af\u30e9\u30b9\u3067\u3042\u308bCComPtr\u30af\u30e9\u30b9\u304a\u3088\u3073CComQIPtr\u30af\u30e9\u30b9\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u517c\u306d\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002 main\u95a2\u6570\u5185\u90e8\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u4e3b\u306bOutputDebugString\u3067\u51fa\u529b\u3055\u308c\u308b\u5185\u5bb9\u3067\u3059\u3002 IUnknown\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u306f\u306a\u304fIClassFactory\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u7406\u7531\u306fQueryInterface\u30e1\u30bd\u30c3\u30c9\u3067\u305d\u308c\u3063\u307d\u3055\u3092\u51fa\u3057\u305f\u304b\u3063\u305f\u3053\u3068\u3068IClassFactory\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u6570\u304c\u5c11\u306a\u304b\u3063\u305f\u3053\u3068\u3060\u3051\u3067\u3059\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 #define STRICT #include <Windows.h> #include \u2026","type":"rich","categories":["C++","COM","ATL"],"published":"2019-07-05 19:03:31","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2019%2F07%2F05%2F190331\" title=\"IUnknown\u306e\u5b9f\u88c5\u4f8b\u3068ATL CComPtr\uff06CComQIPtr\u306e\u52d5\u4f5c\u78ba\u8a8d - 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>","width":"100%","height":"190","author_name":"potisan","title":"IUnknown\u306e\u5b9f\u88c5\u4f8b\u3068ATL CComPtr\uff06CComQIPtr\u306e\u52d5\u4f5c\u78ba\u8a8d","version":"1.0","image_url":null,"provider_url":"https://hatena.blog"}