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

johnsondata1
johnsondata1 used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

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

Thanks,
Hi

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>

Author

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial