Results 1 to 6 of 6

Thread: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    15

    Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    I've made an 'exe' file of an application I developed in VB6. It's fine on my PC but when I run on a different one it comes up with the following message:

    'Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered: a file is missing or invalid'

    These PC's do not have VB installed on them but it should work as it is running as an 'exe' file. Do you know what could be causing the problem?

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    Runtime dependencies are not compiled to an exe and whilst the VB6 runtimes are shipped with 2000 and greater (i think - don't quote me on it) - any extra dependencies (controls / dlls) will need to be distributed with your app (assuming you have the licensing rights to do that) by using an installer

    have a browse of the Application Deployment forum and it's FAQ. You'll find all the info you need there.

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    41

    Re: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    You can bring the ocx with the program in the same folder
    you can place the ocx filw with extract resource
    or you can add the ocx to your compiled program using ThinStall

    here's the ocx
    Attached Files Attached Files

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    Create an Installation package for your app. You cannot just copy the exe and expect it to work with VB.

  5. #5
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    Copy MSDATAGRID.OCX to c:\windows\system32 or click Start > Run and type regsvr32.exe MSDATAGRID.ocx

    press enter

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Component 'MSDATAGRID.OCX' or one of its dependencies not correctly regsitered

    Quote Originally Posted by zynder
    Copy MSDATAGRID.OCX to c:\windows\system32 or click Start > Run and type regsvr32.exe MSDATAGRID.ocx

    press enter
    That's not a good suggestion, it's a stop gap measure which will come back to haunt him...

Posting Permissions

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



Click Here to Expand Forum to Full Width