CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    [RESOLVED] Gallery

    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.

  2. #2
    Join Date
    Jun 2006
    Posts
    4

    Re: Gallery

    I miss the Gallery too. What are the "best practices" for sharing MFC dialogs (with the C++ class) right now?

  3. #3
    Join Date
    May 2006
    Posts
    2

    Re: Gallery

    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.

    Boris Jabes
    Visual C++

  4. #4
    Join Date
    Dec 2005
    Posts
    16

    Re: Gallery

    Quote Originally Posted by borisj
    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.
    That sounds like code duplication instead of reusing a single source?

  5. #5
    Join Date
    May 2006
    Posts
    13

    Re: Gallery

    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.

    Thanks,
    Tarek Madkour
    --
    Lead Program Manager
    Microsoft Visual C++

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