<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shive</author_name>
  <author_url>https://blog.hatena.ne.jp/shive/</author_url>
  <blog_title>ゲームエンジニアな日々</blog_title>
  <blog_url>https://shive.hateblo.jp/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>C#</anon>
  </categories>
  <description>まずC++でこんな.dllを作る。仮にgreeting.dllとする。 #include &lt;stdio.h&gt; extern &quot;C&quot; { typedef const char* (*WhatDoYouSay)(); __declspec(dllexport) void Greeting(WhatDoYouSay callback) { printf(&quot;Greeting: %s\n&quot;,(*callback)()); } } この場合C#からの呼び出しは using System; using System.Runtime.Interopservices; class Program { deleg…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshive.hateblo.jp%2Fentry%2F20090115%2F1232037710&quot; title=&quot;C#からアンマネージドDLL関数の呼び出しとコールバック関数渡し - ゲームエンジニアな日々&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-01-15 01:41:50</published>
  <title>C#からアンマネージドDLL関数の呼び出しとコールバック関数渡し</title>
  <type>rich</type>
  <url>https://shive.hateblo.jp/entry/20090115/1232037710</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
