CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Oregon
    Posts
    4

    Component and Controls Gallery Problem

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Frankfurt, Germany
    Posts
    113

    Re: Component and Controls Gallery Problem

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured