Connecting Tech Pros Worldwide Forums | Help | Site Map

Calling C++ dll which calls C# dll

Newbie
 
Join Date: Jun 2009
Posts: 1
#1: Jun 12 '09
I have 2 dll projects in one solution. One is C++ the other C#. I added a reference to the C# project in the C++ project so that, by using managed C++, can call the C# functions. Whenever I call my C++ dll outside of .NET (which in turn calls C# code in a dll) it crashes. What else do I need to add besides a project reference? I have both Dll's in the same folder, so I figure by reference it would try to look for it, but obviously it is not. The error is generic saying it can't find a library.

Expert
 
Join Date: Aug 2007
Location: nj,usa
Posts: 299
#2: Jun 16 '09

re: Calling C++ dll which calls C# dll


This link will help you
http://www.codeproject.com/KB/cs/unm...tomanaged.aspx
Reply