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」項目了

《參考連結》

Dejar una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tu comentario.