<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maminus</author_name>
  <author_url>https://blog.hatena.ne.jp/maminus/</author_url>
  <blog_title>maminusのメモか何か</blog_title>
  <blog_url>https://maminus.hatenadiary.org/</blog_url>
  <categories>
    <anon>clang</anon>
  </categories>
  <description>clangで作ったDLLをExcelから呼べなくてはまったので解決法をメモ。 Excelから外部DLLを呼ぶ場合 DLL側関数は「WINAPI」をつける必要がある*1 つまり「MS stdcall」って呼び出し規約になる模様 clangでWINAPIをつけた関数 「ExportedFunction@20」みたいに「@」付きでexportされる clangというよりは、MinGWのldがそういう動作をしている模様 「@」関数しか無い状態だと「エントリ&quot;ExportedFunction&quot;がDLLファイル&quot;WinapiCallingConvention-clang.dll&quot;内に見つかりません。」的な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaminus.hatenadiary.org%2Fentry%2F20150124%2F1422095242&quot; title=&quot;Excelとかで呼び出すWINAPI系DLLをclangで作る - maminusのメモか何か&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>2015-01-24 19:27:22</published>
  <title>Excelとかで呼び出すWINAPI系DLLをclangで作る</title>
  <type>rich</type>
  <url>https://maminus.hatenadiary.org/entry/20150124/1422095242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
