{"id":718,"date":"2014-12-19T23:59:11","date_gmt":"2014-12-19T14:59:11","guid":{"rendered":"http:\/\/dev.activebasic.com\/egtra\/?p=718"},"modified":"2015-05-05T22:48:36","modified_gmt":"2015-05-05T13:48:36","slug":"agile-object%e3%81%be%e3%81%9f%e3%81%af%e3%83%95%e3%83%aa%e3%83%bc%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%83%9e%e3%83%bc%e3%82%b7%e3%83%a3%e3%83%a9%e3%83%bc%e3%81%ae%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/","title":{"rendered":"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210"},"content":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f\u3001<a href=\"https:\/\/qiita.com\/advent-calendar\/2014\/com\">COM Advent Calendar 2014 &#8211; Qiita<\/a>\u306e19\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>COM\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30af\u30e9\u30b9\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001\u3069\u306e\u30a2\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u304b\u3089\u3067\u3082\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u305b\u305a\u76f4\u306b\u547c\u3073\u51fa\u3057\u3092\u53d7\u3051\u4ed8\u3051\u3089\u308c\u308b\u3082\u306e\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3042\u308b\u3044\u306f\u3001\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u304c\u90aa\u9b54\u3060\u3068\u601d\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002COM\u306b\u306f\u3001\u305d\u3093\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u624b\u6bb5\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6982\u5ff5\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc (FTM)\u3068\u3057\u3066\u4ee5\u524d\u304b\u3089\u5b58\u5728\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001Windows Runtime API\u3067\u3053\u306e\u6982\u5ff5\u306b<dfn>Agile Object<\/dfn>\u3068\u540d\u524d\u304c\u4e0e\u3048\u3089\u308c\u307e\u3057\u305f\u3002\u6700\u8fd1\u3067\u306f\u3001<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms682353.aspx\">Accessing Interfaces Across Apartments<\/a>\u306a\u3069\u3001MSDN\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5f93\u6765\u306eCOM\u95a2\u4fc2\u306e\u8a18\u4e8b\u3067\u3082\u3053\u306e\u8a00\u8449\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<section>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n<p>\u305d\u306e\u65b9\u6cd5\u306f2\u3064\u3042\u308a\u3001\u5f93\u6765\u7528\u610f\u3055\u308c\u3066\u304d\u305f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc (FTM)\u306e\u96c6\u6210 (Aggregation)\u3068\u3001Windows 8\u3067\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305fIAgileObject\u3067\u3059\u3002\u4e21\u8005\u3068\u3082\u306b\u5b9f\u88c5\u3059\u308b\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre lang=\"cpp\">\r\n#include <atomic>\r\n#include <iostream>\r\n#include <thread>\r\n#include <windows.h>\r\n#include <comdef.h>\r\n\r\nMIDL_INTERFACE(\"c4230d66-43bb-42a9-9f70-f580f5b96866\") IHoge : IUnknown\r\n{\r\n  STDMETHOD(Run)();\r\n};\r\n\r\n_COM_SMARTPTR_TYPEDEF(IHoge, __uuidof (IHoge));\r\n\r\nclass Hoge : public IHoge\r\n{\r\n  Hoge()\r\n  {\r\n    auto hr = CoCreateFreeThreadedMarshaler(this, &m_marshaler);\r\n    if (FAILED(hr))\r\n      throw _com_error(hr);\r\n  }\r\n\r\npublic:\r\n  static IHogePtr Create() { return new Hoge; }\r\n\r\n  IFACEMETHOD(QueryInterface)(REFIID riid, void** ppv) override\r\n  {\r\n    if (ppv == nullptr)\r\n    {\r\n      return E_POINTER;\r\n    }\r\n    \/\/ IAgileObject\u306f\u8ffd\u52a0\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u305f\u306a\u3044\u306e\u3067\r\n    \/\/ IUnknown\u3068\u540c\u3058\u5024\u3092\u8fd4\u305b\u3070\u826f\u3044\u3002\r\n    if (riid == __uuidof (IHoge)\r\n      || riid == __uuidof (IUnknown)\r\n      || riid == __uuidof (IAgileObject))\r\n    {\r\n      *ppv = static_cast<IHoge*>(this);\r\n      AddRef();\r\n      return S_OK;\r\n    }\r\n    else if (riid == __uuidof (IMarshal))\r\n    {\r\n      \/\/ \u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u306b\u4e38\u6295\u3052\u3002\r\n      return m_marshaler->QueryInterface(riid, ppv);\r\n    }\r\n    *ppv = nullptr;\r\n    return E_NOINTERFACE;\r\n  }\r\n\r\n  IFACEMETHOD_(ULONG, AddRef)() override\r\n  {\r\n    return ++m_count;\r\n  }\r\n\r\n  IFACEMETHOD_(ULONG, Release)() override\r\n  {\r\n    auto count = --m_count;\r\n    if (count == 0)\r\n    {\r\n      delete this;\r\n    }\r\n    return count;\r\n  }\r\n\r\n  IFACEMETHOD(Run)()\r\n  {\r\n    std::cout << \"Run: \" << std::this_thread::get_id() << std::endl;\r\n    return S_OK;\r\n  }\r\n\r\nprivate:\r\n  IUnknownPtr m_marshaler;\r\n  std::atomic<ULONG> m_count{};\r\n};\r\n\r\nvoid worker(_In_ IStream* s)\r\n{\r\n  try\r\n  {\r\n    _com_util::CheckError(CoInitializeEx(\r\n      nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE));\r\n\r\n    IHogePtr hoge;\r\n    _com_util::CheckError(CoGetInterfaceAndReleaseStream(\r\n      s, IID_PPV_ARGS(&hoge)));\r\n\r\n    std::cout << \"hoge in worker: \" << hoge.GetInterfacePtr() << std::endl;\r\n    std::cout << \"worker thread: \" << std::this_thread::get_id() << std::endl;\r\n\r\n    hoge->Run();\r\n  }\r\n  catch(const _com_error& e)\r\n  {\r\n    std::cout << std::hex << std::showbase << e.Error() << std::endl;\r\n  }\r\n  CoUninitialize();\r\n}\r\n\r\nint main()\r\n{\r\n  try\r\n  {\r\n    _com_util::CheckError(CoInitializeEx(\r\n      nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE));\r\n\r\n    auto hoge = Hoge::Create();\r\n    std::cout << \"hoge in main: \" << hoge.GetInterfacePtr() << std::endl;\r\n    IStream* s;\r\n    _com_util::CheckError(\r\n      CoMarshalInterThreadInterfaceInStream(__uuidof (IUnknown), hoge, &#038;s));\r\n    std::thread(worker, s).join();\r\n  }\r\n  catch(const _com_error&#038; e)\r\n  {\r\n    std::cout << std::hex << std::showbase << e.Error() << std::endl;\r\n  }\r\n\r\n  CoUninitialize();\r\n}\r\n<\/pre>\n<p>\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u306e\u4f5c\u6210\u306b\u306f<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms694500.aspx\">CoCreateFreeThreadedMarshaler<\/a>\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u5b9f\u5f15\u6570\u306b\u306f\u3001CoCreateInstande\u306e2\u756a\u76ee\u306e\u5b9f\u5f15\u6570\u3068\u540c\u3058\u304f\u5916\u5074\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>QueryInterface\u3067\u306f\u3001\u3053\u306e2\u3064\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>IAgileObject\u306e\u8981\u6c42\u306b\u5bfe\u3057\u3066\u81ea\u8eab\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<li>IMarshal\u306e\u8981\u6c42\u306b\u5bfe\u3057\u3066\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>IAgileObject\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u305f\u306a\u3044\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001INoMarshal\u306e\u5834\u5408\uff08\u53c2\u8003\uff1a\u524d\u3005\u56de\u306e<a href=\"\/egtra\/2014\/12\/17\/714\/\">\u30de\u30fc\u30b7\u30e3\u30eb\u7981\u6b62\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a>\uff09\u3068\u540c\u3058\u3088\u3046\u306b\u3001C++\u57fa\u5e95\u30af\u30e9\u30b9\u306b\u5165\u308c\u305a\u306b\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\nhoge in main: 011D8720\r\nhoge in worker: 011D8720\r\nworker thread: 11092\r\nRun: 11092\r\n<\/pre>\n<p>\u3053\u306e\u7d50\u679c\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u3044\u306a\u3044\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9IHoge\u3067\u3082\u5225\u30a2\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u306b\u6301\u3063\u3066\u3044\u3051\u3066\u3044\u308b\uff08<a href=\"\/egtra\/2014\/12\/16\/713\/\">\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u52d5\u304d<\/a>\u3067\u5931\u6557\u3057\u305f\u306e\u3068\u306f\u5bfe\u7167\u7684\u306b\uff09<\/li>\n<li>\u30dd\u30a4\u30f3\u30bf\u306e\u5024\u304c\u30a2\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u307e\u305f\u3044\u3067\u3082\u5143\u3068\u540c\u3058<\/li>\n<li>Run\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3057\u5143\u306eworker\u30b9\u30ec\u30c3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u306a\u304a\u3001\u305d\u306e\u6027\u8cea\u304b\u3089\u3001\u4eca\u56de\u306e\u3088\u3046\u306bAgile Object\u3060\u3068\u5206\u304b\u3063\u3066\u3044\u308b\u306a\u3089\u308f\u3056\u308f\u3056CoGetInterfaceAndReleaseStream\u306a\u3069\u3067\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u76f4\u63a5\u30dd\u30a4\u30f3\u30bf\u3092\u3084\u308a\u3068\u308a\u3057\u3066\u5e73\u6c17\u3067\u3059\u3002<\/p>\n<h3>Agile Object\u5b9f\u88c5\u6642\u306e\u6ce8\u610f<\/h3>\n<p>\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306e\u3053\u3068\u3092\u8003\u3048\u306a\u304f\u3066\u6e08\u3080\u306e\u304c\u4fbf\u5229\u306aAgile Object\u3067\u3059\u304c\u3001\u305d\u306e\u3053\u3068\u306b\u8d77\u56e0\u3059\u308b\u6ce8\u610f\u70b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u30a2\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u6bce\u56de\u7570\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001C++\u306a\u3069\u306e\u8a00\u8a9e\u3067\u30af\u30e9\u30b9\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u5834\u5408\u3001\u30e1\u30f3\u30d0\u30fc\u5909\u6570\u306bCOM\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6301\u3064\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u57fa\u672c\u7684\u306b\u306f\u3001\u9069\u5207\u306b\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/t62af25w.aspx\">ATL::CComGITPtr<\/a>\u3084<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/hh975368.aspx\">Platform::Agile<\/a> (C++\/CX)<\/a>\u306a\u3069\u306e\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u51e6\u7406\u3092\u30e9\u30c3\u30d7\u3057\u305f\u30af\u30e9\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u4fbf\u5229\u3067\u3059\u3002<\/li>\n<li>\u4f8b\u5916\u3068\u3057\u3066\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u6307\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304cAgile Object\u3067\u3042\u308c\u3070\u305d\u306e\u307e\u307e\u30dd\u30a4\u30f3\u30bf\u3092\u4fdd\u6301\u3057\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<p>\u5f93\u6765\u306eCOM\u3067\u306f\u3001\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u304c\u5fc5\u8981\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u591a\u3044\u306e\u3067\u524d\u8005\u306e\u6ce8\u610f\u70b9\u304c\u76ee\u7acb\u3061\u307e\u3059\u3002\u3068\u3053\u308d\u304c\u3001Windows Runtime API\u3067\u306f\u5f8c\u8ff0\u3059\u308b\u3088\u3046\u306bAgile Object\u304c\u5927\u534a\u3067\u3042\u308b\u305f\u3081\u3001\u307b\u3068\u3093\u3069\u6c17\u306b\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u53c2\u8003:<\/p>\n<ul>\n<li><a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/256217\">INFO: Free Threaded Marshaler Guidelines<\/a><\/li>\n<li><a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/1czb21wa.aspx\">ATL \u3068\u30d5\u30ea\u30fc \u30b9\u30ec\u30c3\u30c9 \u30de\u30fc\u30b7\u30e3\u30e9\u30fc<\/a><\/li>\n<\/ul>\n<h3>Windows Runtime API\u306b\u304a\u3051\u308bAgile Object<\/h3>\n<p>\u4eca\u65e5\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305f\u3073\u305f\u3073Windows Runtime API\uff08WinRT API: Windows\u30b9\u30c8\u30a2\u30fbPhone\u30a2\u30d7\u30ea\u5411\u3051API\uff09\u306e\u8a00\u8449\u304c\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001WinRT API\u3067\u306fAgile Object\u304c\u7b2c\u4e00\u7d1a\u306b\u629c\u64e2\u3055\u308c\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u5f93\u6765\u306eCOM\u306b\u304a\u3044\u3066FTM\u306f\u3084\u3084\u7279\u6b8a\u306a\u4f4d\u7f6e\u3065\u3051\u3067\u3057\u305f\u304c\u3001WinRT API\u3067\u306f\u30af\u30e9\u30b9\u306e\u5b9f\u88c5\u5f62\u614b\u306e1\u3064\u3068\u3057\u3066\u660e\u78ba\u306b\u4f4d\u7f6e\u3065\u3051\u3089\u308c\u307e\u3057\u305f\u3002\u30e1\u30bf\u30c7\u30fc\u30bf (WinMD)\u4e0a\u3067\u3001\u30af\u30e9\u30b9\u306b\u5bfe\u3059\u308b\u5c5e\u6027\u3068\u3057\u3066\u8868\u73fe\u3055\u308c\u307e\u3059\u3002<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/windows\/apps\/windows.foundation.metadata.marshalingbehaviorattribute.aspx\">MarshalingBehaviorAttribute<\/a>\u5c5e\u6027\u306b\u4ee5\u4e0b\u306e<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/windows\/apps\/windows.foundation.metadata.marshalingtype.aspx\">MarshalingType<\/a>\u5217\u6319\u4f53\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li>None<\/li>\n<li>Agile<\/li>\n<li>Standard<\/li>\n<\/ol>\n<p>None\u304c\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u7981\u6b62 (INoMarshal)\u3001Agile\u304c\u305f\u3060\u4eca\u6271\u3063\u3066\u3044\u308bAgile Object\u3001Standard\u304c\u5f93\u6765\u306eCOM\u540c\u69d8\u306e\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>MSDN\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/apps\/xaml\/hh771042.aspx\">Threading and Marshaling (C++\/CX)<\/a>\u306b\u3088\u308c\u3070\u3001Windows Runtime API\u306e\u30af\u30e9\u30b9\u306e\u3046\u306190%\u306fAgile Object\u3060\u305d\u3046\u3067\u3059\u3002ASTA\u306eUI\u30b9\u30ec\u30c3\u30c9\u304c1\u3064\u306e\u307f\u3001\u305d\u308c\u4ee5\u5916\u306f\u3059\u3079\u3066MTA\u3067\u3042\u308b\u3053\u3068\u3082\u4f75\u305b\u3066\u8003\u3048\u308c\u3070\u3001Windows\u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u306b\u304a\u3044\u3066\u306f\u6982\u306d\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7406\u89e3\u3059\u308c\u3070\u5341\u5206\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>UI\u95a2\u4fc2\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304cUI\u30b9\u30ec\u30c3\u30c9\u3078\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3055\u308c\u308b<\/li>\n<li>\u305d\u308c\u4ee5\u5916\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5b9f\u884c\u30b9\u30ec\u30c3\u30c9\u306b\u3064\u3044\u3066COM\u304a\u3088\u3073WinRT API\u306f\u95a2\u4e0e\u3057\u306a\u3044<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Windows\u30b9\u30c8\u30a2\u30fbPhone\u30a2\u30d7\u30ea\u4f5c\u6210\u306b\u304a\u3044\u3066\u306f\u3001\u30a2\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\u3084\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306a\u3069COM\u306e\u3053\u3068\u3092\u3042\u307e\u308a\u77e5\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u5de5\u592b\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u7aba\u3048\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001Agile Object\u304c\u7b2c\u4e00\u7d1a\u3068\u8868\u73fe\u3057\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u4eca\u56deWinRT API\u306e\u9023\u547c\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001Agile Object\u81ea\u4f53\u306f\u975eWinRT API\u30a2\u30d7\u30ea\u3067\u3042\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3067\u3082\u4fbf\u5229\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>WinRT API\u306e\u3088\u3046\u306b\u3001UI\u95a2\u4fc2\u4ee5\u5916\u306f\u7a4d\u6975\u7684\u306bAgile Object\u5316\u3057\u3066\u3001\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3092\u8003\u3048\u305a\u306b\u6e08\u3080\u3088\u3046\u306b\u3059\u308b\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30d6\u30ed\u30c3\u30af\u51e6\u7406\u304c\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u3061\u3087\u3063\u3068\u8003\u3048\u7269\u3067\u3059\u306d\u3002Agile Object\u5316\u3092\u3084\u3081\u3066MTA\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3059\u308b\u304b\u3001\u975e\u540c\u671f\u51e6\u7406\u306b\u3057\u3066Agile Object\u5316\u3059\u308b\u304b\u3001\u6642\u3068\u5834\u5408\u306b\u3088\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u5229\u7528\u983b\u5ea6\u306e\u4f4e\u3044\u308f\u3051\u304c\u306a\u3044\uff08\u3068\u79c1\u306f\u601d\u3063\u3066\u3044\u308b\uff09\u6a5f\u80fd\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u3042\u307e\u308a\u8a71\u3092\u898b\u306a\u3044Agile Object\uff08\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\uff09\u306e\u8a71\u3067\u3057\u305f\u3002<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,143],"tags":[260],"class_list":["post-718","post","type-post","status-publish","format-standard","hentry","category-com","category-winrt","tag-advent-calendar"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d<\/title>\n<meta name=\"description\" content=\"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"og:description\" content=\"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ysk.noh\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-19T14:59:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-05T13:48:36+00:00\" \/>\n<meta name=\"author\" content=\"egtra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@egtra\" \/>\n<meta name=\"twitter:site\" content=\"@egtra\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"egtra\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/\",\"name\":\"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"isPartOf\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\"},\"datePublished\":\"2014-12-19T14:59:11+00:00\",\"dateModified\":\"2015-05-05T13:48:36+00:00\",\"author\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\"},\"description\":\"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/dev.activebasic.com\/egtra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/\",\"name\":\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"description\":\"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\",\"name\":\"egtra\",\"sameAs\":[\"https:\/\/x.com\/egtra\"],\"url\":\"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/","og_locale":"ja_JP","og_type":"article","og_title":"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","og_description":"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002","og_url":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/","og_site_name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","article_publisher":"https:\/\/www.facebook.com\/ysk.noh","article_published_time":"2014-12-19T14:59:11+00:00","article_modified_time":"2015-05-05T13:48:36+00:00","author":"egtra","twitter_card":"summary_large_image","twitter_creator":"@egtra","twitter_site":"@egtra","twitter_misc":{"\u57f7\u7b46\u8005":"egtra","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/","url":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/","name":"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","isPartOf":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#website"},"datePublished":"2014-12-19T14:59:11+00:00","dateModified":"2015-05-05T13:48:36+00:00","author":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164"},"description":"\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u304a\u3088\u3073Agile Object\u306e\u7d39\u4ecb\u3067\u3059\u3002","breadcrumb":{"@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.activebasic.com\/egtra\/2014\/12\/19\/718\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/dev.activebasic.com\/egtra\/"},{"@type":"ListItem","position":2,"name":"Agile Object\u307e\u305f\u306f\u30d5\u30ea\u30fc\u30b9\u30ec\u30c3\u30c9\u30de\u30fc\u30b7\u30e3\u30e9\u30fc\u306e\u96c6\u6210"}]},{"@type":"WebSite","@id":"https:\/\/dev.activebasic.com\/egtra\/#website","url":"https:\/\/dev.activebasic.com\/egtra\/","name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164","name":"egtra","sameAs":["https:\/\/x.com\/egtra"],"url":"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/718"}],"collection":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":0,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}