<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rohki</author_name>
  <author_url>https://blog.hatena.ne.jp/rohki/</author_url>
  <blog_title>ソモサン</blog_title>
  <blog_url>https://rohki.hatenablog.com/</blog_url>
  <categories>
    <anon>Delphi</anon>
    <anon>Windows</anon>
  </categories>
  <description>Windows に相も変わらずどっぷりの rohki です。 Windows には COM という便利な、便利な仕組みがあります。 この COM とスレッドが絡むと、アパートメントという仕組みが出てきます。 COM ライブラリを初期化する (Windows) 上記を参照すると、以下のように使い分けるとよい、とのこと。 スレッドでウィンドウを作成するなら、アパートメント スレッド(COINIT_APARTMENTTHREADED) 持たないなら、マルチスレッド(COINIT_MULTITHREADED) まぁ、だいたいはマルチスレッドでしょう。*1 この切り替えは、スレッドに対して CoInit…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frohki.hatenablog.com%2Fentry%2F2016%2F06%2F16%2F215508&quot; title=&quot;ややこしい COM とスレッドの初期化(?)をコードにする - ソモサン&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-06-16 21:55:08</published>
  <title>ややこしい COM とスレッドの初期化(?)をコードにする</title>
  <type>rich</type>
  <url>https://rohki.hatenablog.com/entry/2016/06/16/215508</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
