<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kkamegawa</author_name>
  <author_url>https://blog.hatena.ne.jp/kkamegawa/</author_url>
  <blog_title>kkamegawa's weblog</blog_title>
  <blog_url>https://kkamegawa.hatenablog.jp/</blog_url>
  <categories>
    <anon>VisualStudio</anon>
    <anon>cpp</anon>
  </categories>
  <description>[id:kkamegawa:20091202:p1]にegtraさんからコメントいただきました。ありがとうございます。 そのhHandleへのポインタを渡したければ、Class1::Test内で、pin_ptr phHandle = &amp;hHandle;と、確かpin_ptrに入れればHANDLE*を引数に取るOpenPrinterに渡せるようになると思います。refクラスのオブジェクトはGCによってメモリ上の位置が移動することがあるので、一時的にpin_ptrで固定しないといけないというわけです。 なるほど、確かにrefクラスのオブジェクト内ではマーシャリングが必要な理由ではありますが、「ヘッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkamegawa.hatenablog.jp%2Fentry%2F20091203%2Fp1&quot; title=&quot;無理だろうけど、C++/CLIの自動マーシャリングの強化について - kkamegawa&amp;#39;s weblog&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>2009-12-03 00:00:00</published>
  <title>無理だろうけど、C++/CLIの自動マーシャリングの強化について</title>
  <type>rich</type>
  <url>https://kkamegawa.hatenablog.jp/entry/20091203/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
