Link to home
Create AccountLog in
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Avatar of Mike Eghtebas
Mike Eghtebas🇺🇸

Component ‘cmdlg32.ocx’ or one of its dependencies not correctly registered:
Run-time error ‘339’:
Component ‘cmdlg32.ocx’ or one of its dependencies not correctly registered: a file is missing or invalid

While back, I developed an application in VB 6.0.

Now, trying it in a new laptop, I get this error.  Upon clicking OK, it exits the application.

A detailed instruction to remedy this problem is appreciated.

Thanks

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of nffvrxqgrcfqvvcnffvrxqgrcfqvvc

Hi, You need to make sure that cmdlg32.ocx is registered on the system

Start/Run / Type: regsvr C:\windows\system32\cmdlg32.ocx

Where C:\windows\system32\cmdlg32.ocx is the location to the file.

My bad,

Regsvr32 C:\windows\system32\cmdlg32.ocx

Avatar of Mike EghtebasMike Eghtebas🇺🇸

ASKER

Start/Run / Type:

Regsvr32 C:\windows\system32\cmdlg32.ocx

responds with:

LoadLibrary(“C:\windows\system32\cmdlg32.ocx”) failed – The specified module could not be found.

Where do I get the file?

mike

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Hi, You need to download the VB6 Runtime files, this should fix the problem
http://support.microsoft.com/kb/q192461/

Avatar of CSecurityCSecurity🇮🇷

Download comdlg32.ocx from here:
http://www.ascentive.com/support/new/support_dll.phtml?dllname=COMDLG32.OCX

The file is called COMDLG32.OCX not cmdlg32

Then copy that file to your windows directory
Then execute this:

Regsvr32 COMDLG32.OCX

Also if you want to be sure it will work make another copy of file and call it CMDLG32.ocx as you said and execute Regsvr32 for that too

Avatar of Mike EghtebasMike Eghtebas🇺🇸

ASKER

at  http://support.microsoft.com/kb/q192461/

MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

Download the VBRun60.exe package now. (http://download.microsoft.com/download/vb60pro/install/6/win98me/en-us/vbrun60.exe)
Release Date: September 18, 2000

Didn't do it.  I still get the same error...

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of CSecurityCSecurity🇮🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Mike EghtebasMike Eghtebas🇺🇸

ASKER

Also, at http://www.ascentive.com/support/new/support_dll.phtml?dllname=COMDLG32.OCX

"Please use the following URL to download a 5.66 MB (5,935,720 bytes) Ascentive Library Installer.

http://www.ascentive.com/support/new/libraryfiles.exe
Right click on the above link and select "Save target as..."

Didn't work.  I may be rushing a bit and making some sort of mistake.  This is because I have to attend something urgent.

I apologize for it.  I will get back to this question late this afternoon.

Regards,

Mike

Avatar of Mike EghtebasMike Eghtebas🇺🇸

ASKER

using regsvr32 \windows\system32\COMDLG32.OCX

did it.  I need yet to try the application.

Avatar of Mike EghtebasMike Eghtebas🇺🇸

ASKER

It works.  Thank you.

mike

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of CSecurityCSecurity🇮🇷

You are welcome...
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.