Component not correctly registered - olch2x7.ocx

Posted by: hstcomp1 on 16 September 2017, 8:24 am EST

  • Posted 16 September 2017, 8:24 am EST

    I have a VB6 application that plots some data to the console. Program was ported from an NT platform to a XP computer.

    Runs fine from within VB (interpretive mode) but as soon as i try to compile it to an exe i get the following:

    "Compile error: Method or data member not found" , highlighting in blue some chart related item refererences like .Chartarea and does not compile.

    Earlier, i had seen " olch2x7.ocx could not be loaded --continue loading project ? " so i suspected this ocx may be missing. I found a copy

    online , put it in system32 folder and registered it with regsvr32 with success. Subsequently i was not able to see it under Project / References in

    the VB even though other componentOne controls are showing (eg. ComponentOne VSFlexgrid 8.0 etc). Then i tried loading it via VB / Project/Components

    (CTRL T) and Browsing the system32 folder which results in "Component not correctly registered" !

    I am simply trying to compile a project which works fine running from the VB code interpretively but will not compile.

    Do i need an upgraded .ocx file or find dll to go with it (Olch2d7.dll). I am at a loss as to what to do next.

    Component not correctly registered

  • Posted 16 September 2017, 8:24 am EST

    Hello,

    If you are using a 64 bit version of Windows, then the controls need to go into C:WindowsSysWOW64 rather than System32. You still register with the regsvr32.exe, but use the one in the SysWOW64 folder.

    Regardless of whether you are using 32 or 64 bit windows, you will need to use an extra parameter to register the Chart controls, /i:design. This parameter is not necessary for VSFlexGrid or most other C1 ActiveX controls. This is what you need to do:

    Cd to C:WindowsSysWOW64

    Execute regsvr32 /i:design olch2x7.ocx

    regsvr32 /i:design olch2xu7.ocx

    regsvr32 /i:design olch3x7.ocx

    regsvr32 /i:design olch3xu7.ocx

    If you still have problems, try downloading the latest Chart 7 version here

    prerelease.componentone.com/.../Chart7_7.0.31.0.zip

    and see if that works.

    -Suelinda

  • Posted 26 September 2018, 8:50 pm EST

    Discussion topic components will not registered in you window 7 , 10 computers you will try to registered https://unfitpc.com/olch2x7-ocx completed its a very powerful solution to help you out

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels