DLL函数未被执行 [英] DLL functions not being executed

查看:76
本文介绍了DLL函数未被执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我为我正在处理的相机项目编写了一个DLL。 DLL是相机和更大的软件应用程序之间的接口。当它包含在测试Windows项目中时,DLL工作得很好,但是当我尝试将它合并到主
软件应用程序中时,它失败了。

I wrote a DLL for the camera project that I am working on. The DLL is an interface between the camera and a larger software application. The DLL works perfectly when it is included in a test windows project, but when I try to incorporate it into the main software application it fails.

我正在尝试的功能要执行的是初始化摄像机并打开一些设置,但这会失败。

The function that I am trying to execute is to initialise the camera and turn on a few settings, but this fails.

我确保DLL输出路径是正确的,但我想知道如何测试是什么出错了? 我还应该注意什么? 我已经看过关于检查在运行时加载的模块的帖子,但是我的DLL似乎永远不会加载
即使正确初始化相机也是如此。

I have ensured that the DLL output path is correct, but I wondered how I can test what is going wrong?  What else should I look out for?  I have seen posts about checking the modules that are loaded during runtime, but my DLL never seems to get loaded even when the camera is initialised properly.

推荐答案

Hi WithSPDev,

Hi WithSPDev,

感谢您在此处发帖。

>> DLL工作正常它包含在测试Windows项目中,但是当我尝试将其合并到主软件应用程序中时,它会失败。

请提供有关如何调用这些函数的更多信息DLL。什么是DLL的类型和主要的软件应用程序?

Please provide more information about how you call these functions in DLL. And what's the type of the DLL and your main software application ?

可执行文件以两种方式之一链接到(或加载)DLL:

An executable file links to (or loads) a DLL in one of two ways:

隐式链接

明确链接

这是一个关于如何调试DLL项目的文档。

And here is a document about how to debug dll projects.

https://msdn.microsoft.com/en-us /library/ms164704.aspx

希望这可以帮到你。

最好的问候,

Sera Yu


这篇关于DLL函数未被执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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