Why does a multilanguage solution not work?

Posted by Lukas on Stack Overflow See other posts from Stack Overflow or by Lukas
Published on 2010-03-24T01:40:41Z Indexed on 2010/03/24 1:43 UTC
Read the original article Hit count: 455

Filed under:
|
|

My solution has a
C# application project
C# User Controls project
C++ Mathematics project

One of the UserControls uses function from the Mathematics (C++ project). This UserControl is used in the application.

Building and starting the application works just fine. When typing the IntelliSense suggests all the contained classes and methods. The UserControl appears correctly, but on clicking a button which calls the C++ function I get a BadImageFormatException (it pops out on the end of the automatically created Main function).

The help suggests to use /fixed:no for linking, but that is already set up.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c#