MFC + C# .NET Compilation

I am working on Microsoft Visual Studio 2005 C++ using MFC and I need to join to my solution the C# project that uses a DLL file which is compiled using .NET framework. Now in the MFC, which is unmanaged code, I tried to include the DLL file and called the function from C# using the "gcroot" function. It worked and compiled perfectly but when I run the project, it crashes as soon as it tries to access the DLL file.

Any solution or suggestions on how to make this work?
Topic archived. No new replies allowed.