Component Reuse

Posted on 1998-06-16
Medium Priority
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 60 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 …
Suggested Courses

770 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