Delphi XE8 匯入 Active DS Type Library

  今天想測試 Delphi 連結 AD 的功能網路上教學說可以透過「Component → Import Compont」來匯入但實際操作時卻出現存取 OLE 登錄時發生錯誤。” 的錯誤訊息


依網路教學步驟來到「Component → Import Compont選擇「Import a Type Library」後看不到「Active DS Type Library」項目


接著點選「Add」選取C:\Windows\System32\activeds.tlb就會出現存取 OLE 登錄時發生錯誤。” 的錯誤訊息


解決方式

執行「命令提示字元」輸入以下指令

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



再回去「Component → Import Compont此時就可以看見「Active DS Type Library」項目了

《參考連結》

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.