<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mokeekee</author_name>
  <author_url>https://blog.hatena.ne.jp/mokeekee/</author_url>
  <blog_title>mokeekeeのブログ</blog_title>
  <blog_url>https://mokeekee-bt.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>C++</anon>
    <anon>DLL</anon>
    <anon>プラットフォーム</anon>
  </categories>
  <description>C#のビルドプラットフォームにはAnyCPUがあり、動作環境が32ビット、64ビットどちらでも正しくソフトが動くようになっている。 そんなソフトで、C++で作成したDLLを使ってみた。 AnyCPUでビルド、実行環境がWin7の64ビット。DLLもWin7の64ビットでビルドされたもの。 すると、下のエラーが出た。 DLLエラー こんな時は以下を確認する。 DLLエラーのときのビルド設定確認 プラットフォームとプラットフォームターゲットが両方AnyCPUかx64 32ビットの優先は不使用 AnyCPUで動作環境とDLLが64ビットなのに動かない、という場合は、 これらの再確認を。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmokeekee-bt.hatenablog.com%2Fentry%2F2020%2F12%2F10%2F105954&quot; title=&quot;C# DLL読み込みエラーとAnyCPUについて - mokeekeeのブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mokeekee/20201210/20201210105256.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-10 10:59:54</published>
  <title>C# DLL読み込みエラーとAnyCPUについて</title>
  <type>rich</type>
  <url>https://mokeekee-bt.hatenablog.com/entry/2020/12/10/105954</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
