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
    6,958
    Thanks
    250
    Thanked
    252 times in 197 posts
    • Spud1's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2x 2.8ghz Quad Core Xeons (octo-core)
      • Memory:
      • 4gb DDR2 FB-Dimm
      • Storage:
      • 1x1TB, 1x320gb, 2x500gb, 1x250gb, 120GB SSD
      • Graphics card(s):
      • Nvidia Geforce 560Ti
      • PSU:
      • Mac pro PSU
      • Case:
      • Mac Pro Case
      • Operating System:
      • Windows 8
      • Monitor(s):
      • 1x22" LG 3D TFT 1x 19" ViewSonic
      • Internet:
      • 80mb BT Infinity

    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
    6,958
    Thanks
    250
    Thanked
    252 times in 197 posts
    • Spud1's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2x 2.8ghz Quad Core Xeons (octo-core)
      • Memory:
      • 4gb DDR2 FB-Dimm
      • Storage:
      • 1x1TB, 1x320gb, 2x500gb, 1x250gb, 120GB SSD
      • Graphics card(s):
      • Nvidia Geforce 560Ti
      • PSU:
      • Mac pro PSU
      • Case:
      • Mac Pro Case
      • Operating System:
      • Windows 8
      • Monitor(s):
      • 1x22" LG 3D TFT 1x 19" ViewSonic
      • Internet:
      • 80mb BT Infinity
    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
  •