如何使用 WinCE 5.0 RTOS 在 ATL 应用程序中加载第三方 .dll (COM DLL)?
我得到了答案,需要了解以下内容:
我有一个 WinCe 5.0 ATL 应用程序。此应用程序使用第三方 COM dll 和第 3 方应用程序(.exe)。根据我对 WinCE 和 Dll 加载的理解如下:
WinCE:
所有 dll 导出函数应写入“.Def”文件和 dll 中需要在运行时包含的图像进程应该存在于“.bib”文件中。并且应该调用DLLExport或loadlibrary(我不想深入讨论如何使用这些)来加载DLL。
但就我而言:没有与第三方dll相关的.def文件,并且存在.bib文件,但是,.dll的路径在文件中被注释(我的代码正在成功构建,我能够使运行时图像)。
除了这个附加文件之外,我还得到了:即 .cfg(我认为是配置文件),其中写着“SERVICE name.dll(例如,这是第 3 方 dll 名称)”。我能够使用“Dll Export Viewer(免费工具)”查看导出函数,但无法从应用程序中找到导出函数的使用(调用)。
我可以编写 .cfg 文件并包含应用程序将使用的 dll 吗?任何人都可以帮助我理解所有这些吗?
提前致谢...
I got the answer and need to understand the following :
I have a WinCe 5.0 ATL application. This application is using third party COM dll and 3rd party application(.exe).As per my understanding on WinCE and Dll loading is as following:
WinCE:
All the dll exported functions should be written in ".Def" file and the dll that need to included during runtime image process should be there in ".bib" file.And one should call DLLExport or loadlibrary (i do not want to go into deep how to use these), to load the DLL.
But in My case: There is no .def file related to the third party dll and .bib file is there, but, the path of the .dll is commented in the file(My code is building successfully and i'm able to make runtime image).
Along with this one more additional file i got : That is, .cfg (i think configuration file) and in that it is written "SERVICE name.dll (for example, this is the 3rd party dll name)".I'm able to see the exported function by using "Dll Export Viewer (a free tool)" but not able to find the use of (calling of) the exported functions from the application.
Can i write .cfg file and include the dll that will be used by application? Can any one pls help me to understand all these??
Thanks in Advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不是 100% 确定我理解这个问题,所以我将解释一下我认为您要问的内容:
如果我的理解是正确的,那么答案是:
是的,您可以这样做。您需要做的是:
如果您没有 #2 的条目,请执行以下操作:
I'm not 100% certain I understand the question, so I'll paraphrase what I think you're asking:
If my understanding is correct, then the answer is:
Yes, you can do this. What you need to do is:
If you don't have the entries for #2, then do the following: