Adding Items to the Gallery
You can build and organize your own collection of reusable code by adding items to the Gallery.
You can convert Visual C++ classes from your own projects into reusable components stored in the Gallery. Gallery creates a component that wraps the class, including all pertinent files and resources. You do not have to cut and paste across several files or worry about naming collisions, because Gallery handles the naming. The file extension for components created from Visual C++ classes is .OGX.
Note Do not add ATL classes to the Gallery. ATL classes might appear to be added successfully, but they contain extra information that cannot be saved to the Gallery, and will not work properly when used in other projects.
You can add third-party components or ActiveX controls to the Gallery’s default folders.
You can also move Gallery items into folders you create. For more information, see Organizing Gallery Items.
Files or components that you add to the Gallery should not be read-only or under source control, as such access restrictions might prevent the items from being subsequently added to a project.