本文介绍了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不起作用.
发布评论