Delphi - 与初学者一起使用dll [英] Delphi - working with dll's for beginners
问题描述
我已经阅读了一些教程,但是没有我希望的那样有帮助。
这是我开始的方式:
我有下载了我需要使用的SDK( ESTOS Tapi Server <一>)。
我阅读文档并发现我需要使用的DLL,这是ENetSN.dll,所以我注册了。
接下来我我使用Dependency Walker来看看这个DLL - 而且我想知道,因为只有这些功能:DllCanUnloadNow,DllGetClassObject,DllRegisterServer和DllUnregisterServer,这些不是文档中提到的函数。
我想我必须调用DllGetClassObject从一个可以开始工作的DLL中获取一个对象。不幸的是,我发现的教程没有提到如何完成(或者我没有理解)。
还有为VB和C ++提供的3个例子,但是我不能将它们翻译成delphi。
如果有人知道这个解释的教程,或者可以给我一个指向正确目标的指针,我会非常感谢。
3个导出的函数表示它的COM / ActiveX DLL,如果您已经注册了运气可以通过项目 - >导入类型库获取。
I'm a total newbie regarding to DLL. And I don't need to creat them I just need to use one. I've read some tutorials, but they weren't as helpful as I hoped.
Here's the way I started: I've downloaded the SDK which I need to use (ESTOS Tapi Server). I read in the docs and spotted out the DLL which I need to use, which is the ENetSN.dll, and so I registered it.
Next I've used the Dependency Walker to take a look at the DLL - and I was wondering because there are only these functions: DllCanUnloadNow, DllGetClassObject, DllRegisterServer and DllUnregisterServer, and these are not the functions mentioned in the docs.
I think I have to call DllGetClassObject to get an object out of the DLL with which I can start to work. Unfortunately the tutorials I found doesn't mentioned how this is done (or I didn't understood it).
There are also 3 exmaples delivered for VB and C++, but I wasn't able to 'translate' them into delphi.
If somebody knows a tutorial where this is explained or could give me a pointer to the right direcetion, I would be very thankful .
The the 3 exported functions indicate that its a COM/ActiveX DLL, If you have registered it with a bit of luck you can get at it via Project->Import Type Library.
这篇关于Delphi - 与初学者一起使用dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!