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?
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.
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