Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 無法執行 OCX 控制項錯誤 0x80040200?以管理員身分註冊解決

編輯:Windows 7 系統介紹

解決步驟

  1. Win+R → 輸入 cmd → Ctrl+Shift+Enter(以管理員身分執行)。
  2. 輸入指令:
    regsvr32 "完整路徑\檔案名.ocx"
    例:regsvr32 "C:\Program Files\MyApp\Control.ocx"
  3. 出現「DllRegisterServer 成功」即完成。
以管理員身分開啟 CMD 執行 regsvr32 註冊 OCX

補充說明

  • 64 位元系統註冊 32 位元 OCX:%windir%\SysWOW64\regsvr32.exe "路徑\檔案.ocx"。
  • 反註冊:regsvr32 /u "路徑\檔案.ocx"。
  • 若仍失敗,檢查 OCX 相依 DLL 是否齊全(用 Dependency Walker 分析)。
Copyright © Windows教程網 All Rights Reserved