C->Cdll->C#dll under VS2008
Hello experts !
I try to implement the following calling chain (for history reasons, thus is a given):
C (.c file, main) -> calling C(.c file dll) -> calling C#(cs. file dll). All thatís under VS2008. Of course, between the C dll and the C# dll I have implemented a COM model, works fine; between the C main and the C dll is basic (I use a .def file for the C dll). The compiler is C++ for the C projects.
Now, with the C-C dll working ok, I try to insert #import <the C# tlb library> into the C dll to start building the COM to the C#. The build of the C dll says error 2773, i.e. I need to use the C++ compiler (which is the case, and referenced into the projectís properties). As soon as I change the C dll source file type to .cpp the build goes through, but not anymore the one of the C main (error LNK 2019, doesnít find the C dll function). All starts from the 2773 error which is not in accordance with the projectís settings. Any hints?