应用程序使用DL​​L,但Visual Studio 2010不在“模块"窗口中显示它 [英] Application using a DLL, but Visual Studio 2010 not showing it in Modules window

查看:75
本文介绍了应用程序使用DL​​L,但Visual Studio 2010不在“模块"窗口中显示它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得这是一个愚蠢的问题,但我似乎无法弄清楚答案.我目前有一个正在加载&利用DLL(我在VS 2010中同时编译了应用程序和DLL).我很肯定它正在使用DLL,因为a)如果我重命名DLL,则会得到一个未找到的异常,b)它显示的是仅来自DLL内部的输出(并且我可以更改它以查看输出变化)

I feel like this is a stupid question, but I can't seem to figure out the answer. I've currently got a C++ application that's loading & utilizing a DLL (I compiled both the application & the DLL with VS 2010). I'm positive it's using the DLL, because a) if I rename the DLL, I get a not found exception, and b) it's displaying output that only comes from (and I can change it to see the output change) inside the DLL.

我的问题是在调试时在Visual Studio的模块"窗口中,似乎没有加载DLL.因此,显然它没有符号,而且我无法设置断点...但是这对我来说毫无意义,因为它显然是在使用DLL.

My problem is that in Visual Studio's Modules window while debugging, the DLL does not appear to be loaded. Because of this, obviously its got no symbols and I can't set breakpoints... But this doesn't make any sense to me as it's clearly using the DLL.

我已经看到了其他几个类似的问题,并且答案通常都是看代码是本机代码,托管代码还是混合代码,并相应地设置附加到进程"字段.我已经尝试了所有选项,并确保将调试器类型"设置为混合"(尽管我也使用Native& Managed进行了尝试,只是为了验证这些方法均不能解决问题).

I've seen several other similar questions, and the answer has generally been too look at whether the code is native, managed, or mixed, and set the "Attach to Process" field accordingly. I've tried all the options there, and made sure my Debugger Type is set to "Mixed" (though I've tried it with Native & Managed as well, just to verify none of these solve the issue).

有人有什么建议吗?

提前谢谢!

推荐答案

这发生在我身上,我找到了project-> properties-> Debug页面,然后单击启用本机代码调试的框.我正在做一个访问C ++/本机dll的C#项目

This happened to me and I found the project->properties->Debug page and clicked the box to Enable native code debugging. I was doing a C# project accessing a C++ / native dll

预算

这篇关于应用程序使用DL​​L,但Visual Studio 2010不在“模块"窗口中显示它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆