C#中调试C++写的DLL代码

来源:互联网 发布:淘宝上传不了图片 编辑:程序博客网 时间:2024/05/18 02:18

原文:http://www.cnblogs.com/Alex-Zhu/archive/2011/12/08/2280355.html

补充:vs2013中调试

1. 将dll工程加入到当前C#工程中。打开Properties-->General,设置"Output Directory"路径为C#工程的输出目录(网上有说拷贝dll和pdb的,此方法比较麻烦)

2.打开C#工程的 Properties->Debug,选中【Enable Debuggers】中的“Enable native code debugging”。

0 0