http://fpcfjf.blog.163.com/blog/static/5546979320134922938373/
http://blog.csdn.net/jiangxinyu/article/details/7848015
With regard to the experience with managed platforms and unmanaged platforms, there is now a problem if you call C + + DLLs, complex data passes, or DLLs pass data back.
Debugging a breakpoint to see in-memory data is the best method, because C # is on a managed platform, and C++dll is on an unmanaged platform. The format of the memory is different, so Microsoft has proposed the relevant solution:
The first step: Right-click the "Properties"---"Debug" on the solution of C #---Tick "Enable unmanaged code debugging".
Second step: Under the "Debug" option ---"Startup options"---"working directory", then click the arrow in the button, in the popup dialog box, specify C++dll's build directory (that is, the path of the Xx.lib Xx.dll)
The third step: Start the C # EXE, the next breakpoint debugging can
C # call C++dll for a small summary of 5---and C + + DLLs for federated debugging