How to debug unmanaged C++ dll in C#
2013-01-11 11:22
676 查看
0. Environment
Windows 8 x64 Enterprice
Visual Studio 2010 x86
1. Problem
We know how to call C++ dll in our C# code in my article Using C++ dll in C# code
But how to debug the C++ code? That's really very important.
2. Solution
2.1 Put your C++ dll project and C# project in the same solution
2.2 In your C# project
Right click C# project -> Properties -> Debug -> Enable Debuggers -> Enable unmanaged code debugging
3. Reference
http://leecky.blog.sohu.com/36904706.html
(This article is from http://www.cnblogs.com/chenyineng/archive/2013/01/11/2856081.html, and belongs to http://chenyineng.cnblogs.com and http://www.chenyineng.info)
Windows 8 x64 Enterprice
Visual Studio 2010 x86
1. Problem
We know how to call C++ dll in our C# code in my article Using C++ dll in C# code
But how to debug the C++ code? That's really very important.
2. Solution
2.1 Put your C++ dll project and C# project in the same solution
2.2 In your C# project
Right click C# project -> Properties -> Debug -> Enable Debuggers -> Enable unmanaged code debugging
3. Reference
http://leecky.blog.sohu.com/36904706.html
(This article is from http://www.cnblogs.com/chenyineng/archive/2013/01/11/2856081.html, and belongs to http://chenyineng.cnblogs.com and http://www.chenyineng.info)
相关文章推荐
- c#调用c++ dll. unable to find an entry point named function in dll
- 【转】How to call c++ exported method and classes in c#
- How to debug in Dev C++?
- how to locate dll in native c++ world / dotnet world?
- How to debug c++ console application with argument in visual studio 2012
- c#调用c++ dll. unable to find an entry point named function in dll
- How to create a DLL library in C and then use it with C#
- How to create a DLL library in C and then use it with C#
- How to use Console.WriteLine in ASP.Net (C#) during debug?
- How to use Console.WriteLine in ASP.Net (C#) during debug?
- how to write a DLL/SO in C/C++ for Python
- How to import dll in c# that can be accessed by [DllImport]
- Debug C++ dll in C# project
- How to call c++ exported method and classes in c#
- [C#/.NET]how to implement web application localization in .net 4.0
- C#中反射的使用(How to use reflect in CSharp)(2)
- Regular Expression in C# - How to make use of Expresso
- How to create a resizeable dialog box with scroll bars in Visual C++
- 如何在C++中使用VBScript(使用Qt)--How to use VBScript in C++ (Using Qt)
- How to use Events in the Context of C#