• 0

[VB] Programs getting constant 'COMDLG32.OCX' errors


Question

All of my VB programs seem to be getting this error...

"Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"

Some people get it, and some people don't, it's very weird. Anyone know how I might remedy this problem?

8 answers to this question

Recommended Posts

  • 0
  Quote
Originally posted by zivan56

Your users need the VB Runtimes, or if you just put the file in system32, you need to run:

regsvr32 comdlg32.ocx

So that the component is registered. Or you can just use this to auto install it for your users

Tried some tests with users, but they're still getting errors even after installing the VB6 runtimes.

"Hmm, I downloaded VB6 Runtime and the generator, but I got an error message. It says it failed to load CommonDialog from COMDLG32.OCX..."

Another user got the same message but it failed to load StatusBar. This is very odd...it works on some systems but not on others.

  • 0
  Quote
Originally posted by Oogle

Not too familiar with VB, but isn't there a way to statically link the runtime libraries? That way, people don't have to download extra stuff. I know you can do it with MFC runtime libraries...

Microsoft had to be really stupid and decide not to include any VB runtime files in Windows itself.

  • 0

Microsoft includes the runtimes into Windows.

Windows 95 doesn't have any runtime libraries for Visual Basic.

Windows 98 has runtimes for Visual Basic 5.

Windows Me has Visual Basic 6 runtimes (I think).

Windows 2000 and XP should have Visual Basic 6 runtimes.

The final version of Windows.NET should have runtime libraries for the .NET framework. ;)

DLL for VB1: vbrun100.dll or just vbrun.dll ?

DLL for VB2: vbrun200.dll

DLL for VB3: vbrun300.dll

DLL for VB4: vb400.dll (I think)

DLL for VB5: msvbvm50.dll

DLL for VB6: msvbvm60.dll

(MSVBVM = Microsoft Visual Basic Virutal Machine)

OCX files are not a part of the so called runtime libraries.

When I programmed in VB6 I tried not to use OCX files, so I used APIs instead.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The new re-designed Win11 start menu is a ripper, FatMan.
    • They already are small. Have you seen the size of Linux icons?
    • I thought I could download the ringtone.
    • Foxconn to make iPhone casings in India as Apple shifts more production from China by Sagar Naresh Bhavsar It was recently reported that Donald Trump was unhappy with Tim Cook and threatened Apple with a 25% tariff if iPhones weren't produced in America. While the exact reason is unclear, some speculated that Trump's anger had to do with Cook skipping the Middle East trip with him, which was attended by other major company CEOs. Many believed that Apple came under the radar because of its plans for a $1.5 billion iPhone production plant in India. True or not, Apple is facing a tough situation as Trump has already imposed hefty tariffs on China, where the majority of iPhones are made. In a move to reduce dependence on China, Apple planned to shift its production from China to India, where tariffs are relatively lower. In line with this, a fresh report by The Economic Times suggests that Apple's iPhone assembler, Foxconn, has decided to start producing iPhone casings in India. Sources claim that a new unit is being planned at the ESR Industrial Park in Oragadam, Tamil Nadu. The area is close to the upcoming display module manufacturing plant. Until now, Tata Electronics was the one producing iPhone casings in India. However, Foxconn, which was assembling iPhones in the country at its plant in Sriperumbudur, will start making iPhone casings as well. This move suggests that Foxconn is helping Apple move more production out of China to India. Prabhu Ram, vice president, industry research group, CyberMedia Research, said, Foxconn has already ramped up its India push. The company recently started production of Apple AirPods in Hyderabad for exports and is also setting up an iPhone production plant in Bengaluru. Casings only make up about 2-3% of the total iPhone cost, making them locally helps Apple reduce costs, and also helps avoid hefty tariffs.
    • I loved the initial compact Start Menu present in Windows 10. It was tiny, awesome and super fast without any Store apps clutter.
  • Recent Achievements

    • One Month Later
      KynanSEIT earned a badge
      One Month Later
    • One Month Later
      gowtham07 earned a badge
      One Month Later
    • Collaborator
      lethalman went up a rank
      Collaborator
    • Week One Done
      Wayne Robinson earned a badge
      Week One Done
    • One Month Later
      Karan Khanna earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      678
    2. 2
      ATLien_0
      274
    3. 3
      Michael Scrip
      220
    4. 4
      +FloatingFatMan
      171
    5. 5
      Steven P.
      160
  • Tell a friend

    Love Neowin? Tell a friend!