Not able to run SWIG C# examples in VS 2010

后端 未结 3 816
借酒劲吻你
借酒劲吻你 2021-01-06 20:40

I am trying to get SWIG to work with Visual Studio and C#.

I downloaded swigwin-2.0.4.zip and converted the project to a VS 2010 project.

I am able to build

3条回答
  •  有刺的猬
    2021-01-06 21:21

    The solution for me was

    • Move the used dll's to the Release (or Debug) directory
    • Run CorFlags /32Bit+ file.exe

    where file.exe is the executable produced by building the code.

    For more information on what is going on Í found the following links helpful

    http://www.davesquared.net/2008/12/systembadimageformatexception-on-64-bit.html

    http://blogs.msdn.com/b/joshwil/archive/2005/05/06/415191.aspx

提交回复
热议问题