• Welcome to Valhalla Legends Archive.
 

Problem With Internal VB Error

Started by Dyndrilliac, January 22, 2005, 11:31 AM

Previous topic - Next topic

Dyndrilliac

I recently reformatted my PC and reinstalled with Windows XP Pro. I have all the Windows Updates for it. After I reformatted, I had to d/l some ActiveX Controls I used in some of my VB programs so they would work (Bot, etc). Anyway, I dled richtx32.ocx, comctl32.ocx, and mscomctl.ocx. Then I opened up the DOS prompt and used regsvr32 <path> after putting them in the system32 directory. Well, a few days after that I "acquired" a new copy of Visual Studio 6 Enterprise Edition because I forgot to back mine up. I installed it, and it works fine, except in Visual Basic when I try to activate one of the controls I mentioned earlier for use in a project, I get the message "Object library not registered". I tried reregistering them with regsvr32 but it didn't help.

Any Ideas?
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Dyndrilliac

HOORAY! HOORAY! I fixed the problem  :o ;D :P

Ok, so here's how to fix it if you have a similar situation as I did.

1) Unregister the controls using regsvr32.
    Example: regsvr32 /u "c:\windows\system32\richtx32.ocx"
2) Reinstall Visual Studio 6 EE Tools and components.
3) Locate MSSTDFMT.DLL off the web if you get a message saying yours is corrupt. Put it in your system32 directory.
4) Register the Library and the controls using regsvr32.
    Example: regsvr32 "c:\windows\system32\msstdfmt.dll"
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Grok

Make sure you are using SP6 for VS6 too, though that has nothing to do with your problem.