paul-2011
paul-2011

Reputation: 704

Can't run Xilium. CefGlue built on Visual Studio 2012

'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

Upvotes: 3

Views: 3305

Answers (1)

Daryn
Daryn

Reputation: 5107

Ok, here's the steps I used to get the samples working in VS 2012:

  1. Get the code from Xilium.CefGlue on github. (The one I used was c3d674a3a8)
  2. Open the Xilium.CefGlue solution in VS2012
  3. Remove or don't build the CefGlue.Demo.GtkSharp project (it didn't interest me & I didn't have the needed libraries)
  4. In the Configuration Manager, select Active Solution Platform to be x86
  5. 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.)
  6. Build solution — should succeed
  7. Copy Xilium files from the unzipped cef_binary_3.1453.1236_windows_xilium to the output folder (bin\x86\Debug or bin\x86\Release). Minimum requirement seems to be:
    • libcef.dll and icudt.dll from .\Debug or .\Release
    • cef.pak and the locales\ folder from .out\Debug or .\Resources
  8. Set CefGlue.Client as the StartUp Project
  9. Run it

Upvotes: 5

Related Questions