如何将Activeds.lib和Adsiid.lib文件添加到项目的链接器输入中? [英] How to add Activeds.lib and Adsiid.lib files to the linker input of my project?

查看:145
本文介绍了如何将Activeds.lib和Adsiid.lib文件添加到项目的链接器输入中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Delphi应用程序中为外部调用编写DLL。此DLL应处理Active Directory搜索。


在Delphi中执行此操作会带来严重问题(某些类型转换问题:无法访问非字符串兼容的数据类型,如objectGUID)。因此,想要在其工作的地方编写外部dll。


我想使用(可视化)C ++,因为我对语言有点熟悉。


<我已经下载了Visual Studio 2017社区,现在我正在尝试按照本指南设置ADSI的Visual C ++项目:https://msdn.microsoft.com/en-us/library/aa746483(v = vs.85).aspx


但我正在使用第3点:"将Activeds.lib和Adsiid.lib文件添加到项目的链接器输入中。"


但是如何?


我的所作所为:Project Explorer - >参考文献 - >添加引用


但我在我的计算机上找不到名为Activeds.lib或Adsiid.lib的文件!


我找到一个名为的文件Activeds.dll,但是试图添加它会导致错误。



我缺少什么?



解决方案

您好Rabenrecht,


感谢您在此处发布。


>>但我正在使用第3点:"将Activeds.lib和Adsiid.lib文件添加到您的链接器输入中项目。"


但是如何?


您可以添加Activeds.lib和Adsiid。 lib进入你的项目属性 - > Linker->输入 - >附加依赖项。我已经在我的vs2017的指南链接中尝试了代码。它工作正常。您需要知道的一件事是创建一个具有
ATL支持的项目。



希望这可以帮到你。


最好的问候,

Sera Yu



I want to write an DLL for an external call within a Delphi application. This DLL shall handle an Active Directory Search.

Doing this within Delphi has posed significant problems (some type conversion issues: it is not possible to access non-string compatible data types like objectGUID). Thus the idea to write an external dll where it works.

I want to use (visual) C++ since I'm somewhat familiar with the language.

I've downloaded Visual Studio 2017 Community, and now I'm trying to set up my Visual C++ Project for ADSI following this guide: https://msdn.microsoft.com/en-us/library/aa746483(v=vs.85).aspx

But I'm struggeling with Point 3: "Add the Activeds.lib and Adsiid.lib files to the linker input for your Project."

But how?

What I do: Project Explorer -> References -> Add References

But I can't find a file called Activeds.lib or Adsiid.lib on my Computer!

I do find a file called Activeds.dll, but trying to add this caused an error.

What am I missing?

解决方案

Hi Rabenrecht,

thanks for posting here.

>>But I'm struggeling with Point 3: "Add the Activeds.lib and Adsiid.lib files to the linker input for your Project."

But how?

You could add the Activeds.lib and Adsiid.lib into your project property->Linker->Input->Additional Dependencies. I have tried the code in the guide link with my vs2017. It works fine. One thing you need to know is to create a project which has ATL support.

Hope this could be help of you.

Best Regards,
Sera Yu


这篇关于如何将Activeds.lib和Adsiid.lib文件添加到项目的链接器输入中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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