Results 1 to 2 of 2

Thread: Cannot unregister an OCX with regsvr32..

  1. #1
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,508
    Thanks
    336
    Thanked
    320 times in 255 posts
    • Spud1's system
      • Motherboard:
      • Gigabyte Aorus Master
      • CPU:
      • 9900k
      • Memory:
      • 16GB GSkill Trident Z
      • Storage:
      • Lots.
      • Graphics card(s):
      • RTX3090
      • PSU:
      • 750w
      • Case:
      • BeQuiet Dark Base Pro rev.2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Asus PG35VQ
      • Internet:
      • 910/100mb Fibre

    Cannot unregister an OCX with regsvr32..

    Ok, interesting problem here

    The problem is with good old MSCAL.OCX (evil, evil component). I originally had version 10.0 installed on this machine, correctly registered and working fine. Then today I needed to compile an old VB6 dll, that requires me to use Version 8.00 of MScal.

    So I unregister version 10, rename it, copy in version 8, and register it with regsvr32.

    I compiled my dll (which worked fine), so then wanted to restore version 10 of mscal.

    start->run-> regsvr32.exe /u mscal.ocx

    and I get an error message.

    "DllUnregisterServer in mscal.ocx failed. Return code was: 0x80004005"

    Looking up this error message in winerror.h gives me the extreamly helpful:

    "unspecified error"

    I suspect it might be something to do with the classID's, but i'm not sure. Currently looknig through the registry to check them..but i'm not confident I will find anything wrong there.


    Anyone got any ideas of what to try from here? Any help/suggestion would be greatly appreciated

    Thanks

    spud/pete

  2. #2
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,508
    Thanks
    336
    Thanked
    320 times in 255 posts
    • Spud1's system
      • Motherboard:
      • Gigabyte Aorus Master
      • CPU:
      • 9900k
      • Memory:
      • 16GB GSkill Trident Z
      • Storage:
      • Lots.
      • Graphics card(s):
      • RTX3090
      • PSU:
      • 750w
      • Case:
      • BeQuiet Dark Base Pro rev.2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Asus PG35VQ
      • Internet:
      • 910/100mb Fibre
    Managed to get it working in the end - turned out to be a classID problem as suspected. There were two class ID's in the registry for the same ocx - removing them, rebooting and then re-registering the ocx solved the issue.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •