<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chrofieyue</author_name>
  <author_url>https://blog.hatena.ne.jp/chrofieyue/</author_url>
  <blog_title>Next MIDI Project</blog_title>
  <blog_url>https://chrofieyue.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>とても簡単なことなんだけど誰も書いてないのでメモ。 char hello[] = &quot;Hello\r\n&quot;;void main() { __asm { mov eax, offset hello; push eax; call dword ptr [printf]; pop ebx; } }DLL 内の関数を呼ぶときには関数名を dword ptr [] で括ればいいらしい。 MessageBoxA もこれで呼べる。ただし MessageBox の場合は呼び出し規約が __stdcall なので pop ebx; は必要ない。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchrofieyue.hatenadiary.org%2Fentry%2F20100310%2F1268236195&quot; title=&quot;インラインアセンブラで printf を呼び出す - Next MIDI Project&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>2010-03-10 00:49:55</published>
  <title>インラインアセンブラで printf を呼び出す</title>
  <type>rich</type>
  <url>https://chrofieyue.hatenadiary.org/entry/20100310/1268236195</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
