【发布时间】:2013-07-19 12:42:07
【问题描述】:
我正在尝试在我的项目中使用 FreeImage .NET 包装器,我的 ptoject 以 AnyCPU 为目标,而 dll 包装器在此下不起作用,它仅在我以 x86 机器为目标时才有效。
当我尝试使用面向 AnyCPU 或 X64 的包装器加载文件时,它会抛出此异常:
"Se ha intentado cargar un programa con un formato incorrecto. (Excepción de HRESULT: 0x8007000B)"
Translated:
"Intent to load a program with incorrect format (Excepción de HRESULT: 0x8007000B)"
我已尝试按照以下步骤在网络项目中使用 x64 freeimage:http://www.sambeauvois.be/blog/2010/05/freeimage-and-x64-projects-yes-you-can/
...但是我的VS2012无法打开任何解决方案,它说“找不到本地化资源”。
freeimage 和 wrapper 的来源在这里:http://downloads.sourceforge.net/freeimage/FreeImage3154.zip
我需要将 dll 转换为与 anycpu 目标一起使用,或其他解决方案使其工作,我正在使用 VBNET。
【问题讨论】:
标签: c# .net vb.net freeimage target-platform