dll不起作用.

编程入门 行业动态 更新时间:2024-10-26 09:31:08
本文介绍了dll不起作用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个VS2005解决方案,其中有一个C ++控制台应用程序项目和一个以上的库项目. 当我运行c ++控制台应用程序时,出现命令提示符,但立即消失.我在此应用程序中有很多断点.在停止在控制台上之前的一段时间,但是在我更改了一个库项目(由控制台应用程序使用)后,它停止了工作. 为什么控制台应用程序不使用这些dll?

Hi, I have a VS2005 solution having one project of C++ console application and more than one library projects. When i run the c++ console application , command prompt appears but vanishes immediately. I have a lot of break points in this application. Some time before it was stopping at console but after my changings in one of library projects(used by console application), it stopped working. Why not console application is using these dlls?

推荐答案

我的DLL检查清单不起作用: 您是否更改了DLL中正在调用的任何接口/对象? 您是否在主应用程序或DLL中更改了任何指针处理? 您是要在DLL的一侧创建一个指针,然后在主应用程序中销毁它(还是相反)? 您是否更改了解决方案,以使其不会自动链接到DLL(需要显式导入)? 我可以继续下去..但是我猜这是一个好的开始. 就像另一个人所说,如果您需要特定的帮助,请提供有关您的问题的特定详细信息.我们想提供帮助..但是信息很关键. My checklist for DLLs not working: Have you changed any of the interfaces/objects being called in your DLL? Have you changed any pointer handling in your main app or DLL? Are you creating a pointer on one side of the DLL and destroying it in your main app (or the other way around)? Have you changed the solution so that it doesn''t automatically link to your DLL (requiring an explicit import)? I could go on and on.. but I''m guessing this is a good start. As the other said, if you want specific help, provide specific details around your questions. We want to help.. but information is key.

我重新编译了整个解决方案.我认为需要重建.问题已解决. I recompile the whole solution. I think a rebuild was required.Problem solved.

更多推荐

dll不起作用.

本文发布于:2023-11-13 12:16:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不起作用   dll

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!