<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aharisu</author_name>
  <author_url>https://blog.hatena.ne.jp/aharisu/</author_url>
  <blog_title>aharisuのごみ箱</blog_title>
  <blog_url>https://aharisu.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>前回の記事でアンマネージコードにC#のデリゲートを渡して実行してもらう方法を説明しました。 その中でC,C++の関数ポインタに__stdcallをつけなければならないと書きましたが、C#のデリゲートを__cdeclにする方法が.netにはあったらしいのです。 方法は前回の記事のコメントに書いてあるのでそちらを参照してください。 情報提供ありがとうございました。 さて。前回この記事の本題はまた次回にと書いたので今回はその続きです。 デリゲートをアンマネージコードに渡す際に注意しなければならないことです。 それはズバリ、デリゲートの寿命管理です C#のデリゲートは型でありインスタンス化することで使…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faharisu.hatenadiary.org%2Fentry%2F20090401%2F1238598866&quot; title=&quot;アンマネージコードにC#のデリゲートを渡す　つづき - aharisuのごみ箱&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-04-01 00:14:26</published>
  <title>アンマネージコードにC#のデリゲートを渡す　つづき</title>
  <type>rich</type>
  <url>https://aharisu.hatenadiary.org/entry/20090401/1238598866</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
