June 21st, 2006, 07:37 AM
In VS 6.0, there was this feature of Add to Gallery , which was pretty handy at times, I would like to ask for the particular reason to drop this in VS .Net IDE.
June 21st, 2006, 09:33 AM
I miss the Gallery too. What are the "best practices" for sharing MFC dialogs (with the C++ class) right now?
June 22nd, 2006, 03:05 PM
That's indeed a pretty cool feature that has disappeared from the product. You can do something a little similar but not as powerful using the toolbox. You can highlight a piece of code and drag it onto the toolbox. A new item will be added to the toolbox with a "Text" prefix. This item will serve as a token that pastes that piece of code anywhere else you may like.
June 22nd, 2006, 04:05 PM
That sounds like code duplication instead of reusing a single source?
Originally Posted by borisj
June 23rd, 2006, 07:43 PM
Yes, that would be copying as opposed to reusing. We really don't have a good replacement for the component gallery. That was one of the features that we lost between the vc6->vc7 "rewrite". Not a whole lot of people asked for it, so we never put it back.
Your best workaround now is probably to share .cpp/.h in your source hierarchy, use static libraries, or use some other sort of manual mechanism.
Lead Program Manager
Microsoft Visual C++
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!