• 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

    • Tech demos are a declaration of desire, an horizon for what they pretend to put on those boxes call consoles (i still laugh at the poor implementation of Hairworks in W3 when you compare it with the demos)...being made on UE5 doesn't give me any confidence considering how poorly it runs in those things, and CDPR is not a marvel in that aspect neither. And about the game, so far is non existent besides the cinematic trailer. If from the get go they have to justify the whys for the protagonist, you start your narrative with the left foot.
    • Seen a 5090 for just over $3,000 at Best Buy just a couple days ago. It wasn't the sticker price that made me laugh... it's knowing that, for now... that kind of investment that includes drivers that don't work, is a headache no one should have to shell out for. But.. it's not the first time Nvidia has choked on crappy drivers, won't be the last.. so, if you spent a pretty penny on the next gen, hang in there... sure they'll get it right some day here soon.
    • Because they and their 801 partners are hungry for your data, and the web is the best facilitator of everything privacy-violating in this day and age... They want all your non-microsoft account data going to microsoft's servers:
    • Sorry, I found your question odd, that's all 😅.
    • "LOL The IoT version is for embedded systems" LOL. The IoT version is for whatever you want, why are you so stuck up? It's just A NAME. Open your mind, buddy 😅. It's not a different version of Windows, only the licensing model and the support dates change, nothing else. "there no real reason to do that" Everyone has their reasons. You love to use Linux. Why? You have YOUR reasons. Other people will have theirs. I use Windows 11 and Linux on the side. Why? I have my reasons. "No security updates? Who cares!" Many people do, just not you. Why not use a supported OS instead of an unsupported one if you can? LOL. I find it odd that a person that loves Linux and choice/freedom so much has such a hard time understanding why people do things different than him.
  • Recent Achievements

    • First Post
      m10d earned a badge
      First Post
    • Conversation Starter
      DarkShrunken earned a badge
      Conversation Starter
    • One Month Later
      jrromero17 earned a badge
      One Month Later
    • Week One Done
      jrromero17 earned a badge
      Week One Done
    • Conversation Starter
      johnwin1 earned a badge
      Conversation Starter
  • Popular Contributors

    1. 1
      +primortal
      251
    2. 2
      snowy owl
      157
    3. 3
      +FloatingFatMan
      140
    4. 4
      ATLien_0
      140
    5. 5
      Xenon
      128
  • Tell a friend

    Love Neowin? Tell a friend!