Uninstalling an OCX (regsvr32 is not enough!)

F

Flash

Hi,
after updating my own OCX file I noted that it cannot be inserted any more
in a Word document. It says something like:
"Object created in {long exadecimal number}. The application cannot be
found. Make sure the application is properly installed, and that it has not
been deleted, moved or renamed."
What happened? In order to update my control, I followed this sequence of
steps:
- unregister the prevoius version using regsvr32/u
- rebuild (and overwrite) the OCX file
- re-register the new OCX file with regsvr32
....but it seems that it wasn't enough.:(
I have to completely remove what was left in the register about the first
version of the OCX file, and start over. But how can I do it? Using
regsvr32/u is useless (I tried many times with no effect), must I manually
clean something in the register?
Just for information, I can use the new version if the control in any VB
project. It arises errors in Word only.
Thanks very much in advance,
 
J

Jezebel

Try this (no guarantees) -- Start Word and switch to VBA. Go to References
and browse to your OCX (ie add it as a reference to the project). Save,
close, restart. If all is now OK, you should be able to unreference it.
 
F

Flash

Jezebel said:
Try this (no guarantees) -- Start Word and switch to VBA. Go to References
and browse to your OCX (ie add it as a reference to the project). Save,
close, restart. If all is now OK, you should be able to unreference it.

Thanks for your answer.
I tried, but with no effect. :(((
Curiously I was anyway able to add that control on any UserForm (it worked
regularly) even if I couldn't put it directly into the document.
 
F

Flash

Jezebel said:
Try this (no guarantees) -- Start Word and switch to VBA. Go to References
and browse to your OCX (ie add it as a reference to the project). Save,
close, restart. If all is now OK, you should be able to unreference it.

Thanks for your answer.
I tried, but with no effect. :(((
Curiously I was anyway able to add that control on any UserForm (it worked
regularly) even if I couldn't put it directly into the document.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top