Win7 旗艦版安裝 LRC 歌詞轉換器等舊軟體報錯 「Component 'Comdlg32.ocx' not correctly registered: a file is missing or invalid」,這是 VB6 經典常用對話方塊控制項遺失/未註冊。提供三種解法。

comdlg32.ocx (約 62KB)。C:\Windows\System32。C:\Windows\SysWOW64 (64 位系統執行 32 位程式讀取 SysWOW64)。

regsvr32 c:\Windows\System32\comdlg32.ocxregsvr32 c:\Windows\SysWOW64\comdlg32.ocx


核心觀念:64 位 Windows 為相容 32 位程式,採用 WoW64 (Windows 32-bit on Windows 64-bit) 轉換層,32 位系統檔案實際存放於
SysWOW64,System32反而存放 64 位檔案。補檔/註冊必須對應目標程式位數,否則無效。
三種解法任選一,建議優先用解法二 + 三 (補檔並註冊) 徹底解決。