<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inazakira</author_name>
  <author_url>https://blog.hatena.ne.jp/inazakira/</author_url>
  <blog_title>あの中の蛙</blog_title>
  <blog_url>https://inazakira.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>C、C++では型が違っても(void* (*)(void*))にキャストしてやれば関数ポインタを引数に渡すことができるみたい(さすがに引数の数は揃えなきゃだけど)。 今会社ではWindowsとLinuxのマルチスレッドプログラムを作っています。 で、自社制作した子スレッドを作るクラスをライブラリがあって、その中で 外部ではAFX_THREADPROC関数にて子スレッド化したい関数を作成(UINT (*)(void*)型) void* (*)(void*)型にキャスト ライブラリの引数に指定 ライブラリ内でAFX_THREADPROC型にキャスト スレッドの作成 Windows: AfxBegi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finazakira.hatenadiary.org%2Fentry%2F20101008%2F1286548420&quot; title=&quot;型違いの関数ポインタを引数に渡す - あの中の蛙&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-10-08 23:33:40</published>
  <title>型違いの関数ポインタを引数に渡す</title>
  <type>rich</type>
  <url>https://inazakira.hatenadiary.org/entry/20101008/1286548420</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
