Register MSADODC.OCX

Giovanni Conte 66 Reputation points
2021-10-18T15:33:53.34+00:00

An old app of mine in VB6 uses MSADODC.OCX. Now my OS is WINDOWS 10 and I can't install VB6 but only Visual Basic Portable. Trying to launch my app in VB Portable, I get an error message about the OCX (not correctly registered). I've tried to register again the file but unsuccessfully.
Can someone tell me if there's a way to make MSADODC work with VB Portable?
Thank you in advance ...

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,891 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Castorix31 90,356 Reputation points
    2021-10-18T16:16:18.213+00:00

    > I've tried to register again the file but unsuccessfully.

    Which error ?

    OCX must be registered as Admin

    If I do, in a CMD window as Admin (in the directory where I copied MSADODC.OCX) :

    regsvr32 MSADODC.OCX
    

    I get the message that it is registered successfully.

    1 person found this answer helpful.

  2. Jon Martin Solaas 0 Reputation points
    2023-03-14T10:44:15.48+00:00

    Mostly for the record I guess; I have an old VB6 app that suddenly complained about missing MSADODC.OCX. I run it under Wine and not in Windows, btw. Copying the file from the old XP virtual machine where I develop and installing it with

    regsvr32 MSADODC.OCX

    worked and after the VB app was happy again. I have no idea why it worked earlier, but it could be related to adding foreign key constraints to the jet database.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.