How to register a 32 bit ocx file in 64 bit Windows 7

I have quite an old legacy visual basic database application which I want to transfer to Windows 7 64bit.
When I install I get the error from the Visual Basic Setup Toolkit "The program can't start becuase VSPELL32.dll is missing from your computer. Try reinstalling the program to fix the problem"
I then get an error "An error occurred while registering the file 'C:\Windows\System32\VSPELL32.OCX"
I have copied both files to windows\system32
If I try to register it manually I am getting the error
"The module 'vspell32.ocx' may not compatible with the version of Windows you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe"
NB I am not the programmer who wrote it.
Any help please
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Try placing the ocx in the \Windows\SysWOW64 dir and run "regsvr32" from the C:\Windows\SysWOW64 directory.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rahul GuptaCommented:

Place the OCX File in %Systemroot%\SysWOW64
Run the Command Prompt in Administrative Mode and then register using Following commands

regsvr32 %systemroot%\sysWOW64\<your ocx name> <enter>
johnsondata1Author Commented:
Thanks NOC Engineer

I had read this, but hadn't tried.
It worked fine. I will now move onto the next problem with the legacy install
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.