Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

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: 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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

610 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