Click here to Skip to main content
15,938,022 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I have vb6.0 windows application. i am running the application by clicking exe.
if we click one of the button in the application, i get the below error.

Run-time error '339': Component 'Imocx32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid

This Imocx32.ocx is already available in system32 and SysWOW64 folder under windows.

i try to register this ocx by use run as admin mode, i get the below error.

The module "C:\Windows\SYSWOW64\Imocx32.ocx" failed to load.

Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

The specified module could not be found.

please help on this issue.

thanks

What I have tried:

trying to register the OCX file
Posted

1 solution

If you're trying to use regsvr32 to register the component, and you are running on a 64-bit operating system, you're hitting the error because it's trying to use the 64 bit regsvr32. You will also have a 32 bit regsvr32 on your machine - you need to use this version to perform the registration. Try this instead:
CMD
%SystemRoot%\SysWOW64\regsvr32 imgocx.ocx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900