Search code examples
comvb6registryocx

VB6 Error - Cannot load .ocx File


I have been trying to load a OCX file into one of my VB6 projects for most of the day today. I've tried checking the COM registration in the registry the best that I know how, and have attempted several times using REGSVR32 on the file to no avail. All I keep getting from VB6 when I try to load the component (Under Project --> Components) is 'FilePath\FileName.ocx' could not be loaded. Has anyone else seen this before, and if so, any ideas how to fix it?


Solution

  • This it may be a dependency issue -- some other component needed by the OCX is not present. Dependency Walker will find any static dependencies.