'Hi all, I downloaded Xilium.CefGlue and built the source on Visual Studio (xilium-xilium.cefglue-b22787699e57), I also downloaded cef_binary_3.1453.1236_windows_xilium and copied the libcef.dll to the Xilium Winforms demo as the apps requires it to run but when I run it I get the following error:
An attempt was made to load a program with an incorrect format.
Exception from HRESULT: 0x8007000B
I've targeted x86, can I get some help? Thanks
Ok, here's the steps I used to get the samples working in VS 2012:
- Get the code from Xilium.CefGlue on github. (The one I used was c3d674a3a8)
- Open the Xilium.CefGlue solution in VS2012
- Remove or don't build the CefGlue.Demo.GtkSharp project (it didn't interest me & I didn't have the needed libraries)
- In the Configuration Manager, select Active Solution Platform to be
x86 - Ensure that the target framework settings cooperate between projects. (e.g. CefGlue.Demo & CefGlue.Demo.WinForms by default are v2.0, but they depend on CefGlue which is v4.5) (For simplicity I set them all to v4.0 Client profile and it worked.)
- Build solution — should succeed
- Copy Xilium files from the unzipped cef_binary_3.1453.1236_windows_xilium to the output folder (
bin\x86\Debugorbin\x86\Release). Minimum requirement seems to be:libcef.dllandicudt.dllfrom.\Debugor.\Releasecef.pakand thelocales\folder from.out\Debugor.\Resources
- Set CefGlue.Client as the StartUp Project
- Run it
来源:https://stackoverflow.com/questions/17124852/cant-run-xilium-cefglue-built-on-visual-studio-2012