Run-time error 339 - component comctl32.ocx not correctly registered


  1. Posts : 3
    W10
       #1

    Run-time error 339 - component comctl32.ocx not correctly registered


    Hi,
    starting a VB6.0 program in W10 I get this "run-time error 339"-report, The opening screen is ok, but as soon as I try to start one of my menus I get this report. It further says "one of its dependencies not correctly registered: a file is missing or invalid." Can someone give me a hint, what to do in this situation?
    Raumichel
      My Computer


  2. Posts : 869
    Windows 10 Professional x64 21H2
       #2

    Hi Raumichel and Welcome to TenForums. Open a Command Prompt as administrator type regsvr32 comctl32.ocx and hit enter. Do you still get the error? If you do try these commands one at a time.

    regsvr32 \\Windows\\System32\\ comctl32.ocx /u

    regsvr32 \\Windows\\System32\\ comctl32.ocx
      My Computers


  3. Posts : 3
    W10
    Thread Starter
       #3

    Hi Lance1,
    first thanks a lot for your answer. I've tried all your suggestions and got a little ahead (the error-report is a bit postponed), but the problem itself is not yet solved. Entering that command "regsvr32 \\Windows\\System32\\ comctl32.ocx /u" I get this message "Make sure the binary file is saved at the given path or debug the file to exclude problems with the binary file or dependent dll-files."
    I'm not quite sure, what's the binary file in my program and whether it is put at the right place.
    Raumichel
    P.S: I also must get used to the idiosyncracies of this forum.
    "
      My Computer


  4. Posts : 869
    Windows 10 Professional x64 21H2
       #4

    Raumichel said:
    Hi Lance1,
    first thanks a lot for your answer. I've tried all your suggestions and got a little ahead (the error-report is a bit postponed), but the problem itself is not yet solved. Entering that command "regsvr32 \\Windows\\System32\\ comctl32.ocx /u" I get this message "Make sure the binary file is saved at the given path or debug the file to exclude problems with the binary file or dependent dll-files."
    I'm not quite sure, what's the binary file in my program and whether it is put at the right place.
    Raumichel
    P.S: I also must get used to the idiosyncracies of this forum."

    regsvr32 \\Windows\\System32\\ comctl32.ocx /u unregisters comctl32.ocx and you need to re-register it again by running regsvr32 \\Windows\\System32\\ comctl32.ocx right afterwared. Did you do that? Then run VB6.0. and see if you get there error. If you still get the error try running sfc /runnow from an Admin Command prompt. Here's a how to: " How to Repair System Files" Let us know if it find any problem.
      My Computers


  5. Posts : 3
    W10
    Thread Starter
       #5

    Answer for Lance1


    Hi Lance1, thanks again for your patience dealing with my problem. Entering that command.".../u" now I get this report
    "The module comctl32.ocx possibly isn't compatible with the windows-version you execute....." Searching the internet I found the address "https://www.pcsystemfix.com/de/tutorials/......" and was advised to download several VB6.0 components etc. Meanwhile I'm not sure at all whether this will help or only will require further measures. Asking for help I had thought it would be easier (just the proper command) to fix the problem. Now as I see it is not the case and the matter being not essential, I think it's too laborious to proceed. Nevertheless the endeavours were not in vain, one always gains experience. Raumichel
      My Computer


  6. Posts : 869
    Windows 10 Professional x64 21H2
       #6

    Sorry, that's all I can think of at this time. I'm hoping someone will jump in with another suggestion. Good luck.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:55.
Find Us




Windows 10 Forums