Delphi XE8 匯入 Active DS Type Library

Today I want to test the function of connecting Delphi to AD,Teaching on the Internet,You can use "Component → Import Component"…” to import,But in actual operation,卻出現 “An error occurred while accessing OLE login。” Error message。


Follow the online teaching steps,Go to "Component → Import Component…」,After selecting "Import a Type Library",Cannot see the "Active DS Type Library" item。


Then click "Add",Select “C:\WindowsSystem32activeds.tlb” Later,will appear “An error occurred while accessing OLE login。” Error message。


解決方式

Execute "command prompt character",Enter the following command

tregsvr -t -c C:\Windows\System32\activeds.tlb



Go back to "Component → Import Component…」,At this point you can see the "Active DS Type Library" project。

"Reference Link"

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.