Component Reuse

Posted on 1998-06-16
Last Modified: 2013-11-20
I have an old app that I want to reuse certain portions of.  I want to reuse a few dialogs, so how do I port the dialog into the new app?  I can copy the class files easily, but how do I copy the resource (design of the dialog) and the bitmaps that are associated with it?  I don't want to copy the entire old application over though since it is huge.
Question by:VEngineer
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

trestan earned 20 total points
ID: 1318010
You can open the old resources (dialog and bitmap, etc.) in your new project window. Then copy them to new files created in the new project.

Author Comment

ID: 1318011
How do I know what bitmaps the dialog is dependent on?  I have an insane number of bitmaps but I only want the necessary ones.

Expert Comment

ID: 1318012
I am confused by your question. Is it you that create those bitmaps? Or you can not remember what they are? Or do you mean the icons used in your interface? It seems that it is not a 25 points question.
YOu can look up the ID for the icons in the *.rc files and find the corresponding filename. Is it the question?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 1318013
I believe what you want to do is copy the resource template of the dialog?
This is easy to do, but hard to find information regarding it.
Open a fresh instance of DevStudio.  Open the resource (*.rc) files for both projects.  Then drag and drop items from the source to the target just like in Windows Explorer.
That's it!

Expert Comment

ID: 1318014
sure. It is easy if that is the question.

Author Comment

ID: 1318015
This is what I need.  Someone else wrote the old program, but I guess I can find the filenames called then pick those out.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question