The comdlg32.ocx module is used in old/classic Visual Basic applications. This ActiveX control is responsible for the functionality of common dialog boxes in your VB application. Common dialog boxes include the Open and Save As file dialog boxes; the Find and Replace editing dialog boxes; the Print, Print Setup, Page Setup printing dialog boxes, etc.
When you attempt to run a program created using Visual Basic 6.0 on a Windows 11/10 computer, one of the following errors may occur:
Failed to load control 'CommonDialog' from COMDLG32.OCX. Your version of COMDLG32.OCX may be outdated.
Run-time error '339': Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid
This happens if the module
comdlg32.dll is missing or corrupted. Let’s see how to fix the Common dialog error in your application when run on any version of Windows, including Windows 11.Read more