Click to See Complete Forum and Search --> : Component and Controls Gallery Problem


jhart21
October 7th, 1999, 06:12 PM
I recently built an ActiveX control (OCX) using VB6.0 and was able to insert it into my VC6.0 application.

I then went back to make some changes in VB and "Publish"ed the updated OCX. Since I added some new interfaces, I knew that I needed to regenerate my .cpp & .h wrapper files. I removed the existing .cpp & .h wrappers and went into the Components & Controls Gallery to re-insert the control into the project -- that's where I got stuck.

I see a shortcut to my OCX control, but when I select it, it says that my OCX doesn't exist at path "such & such" -- BUT IT DOES!

Is there any way to clear out component gallery entries (I've gone through the registry and removed all instances of it that I could find and also removed it from my workspace file).

Any thoughts?

Thanks in advance,

Joe

Rudolf
October 7th, 1999, 10:03 PM
Hi,
I only have done something like this with VC5.0 controls in VC5.0 environment. In this case I remove all the objects from the dialog templates, remove the header and source files from the workspace, delete (or remove) them from the directory of my workspace. Then I insert the control one more time in the component gallery add the new versions to the dialog templates and everything works fine. When I use the default ID's for the controls there's nothing more to change (I do not need to remove variables of that type nor the DDX entries nor the message map entries etc).
Simply ignore the shortcut in the time between.
HTH
Rudolf