Solved

Component Reuse

Posted on 1998-06-16
6
130 Views
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.
0
Comment
Question by:VEngineer
  • 3
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
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.
0
 
LVL 2

Author Comment

by:VEngineer
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.
0
 
LVL 8

Expert Comment

by:trestan
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?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 2

Expert Comment

by:rayb
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!
0
 
LVL 8

Expert Comment

by:trestan
ID: 1318014
sure. It is easy if that is the question.
0
 
LVL 2

Author Comment

by:VEngineer
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.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Define unique primary key 9 93
matchUp  challenge 6 64
wordcount challenge 11 121
Updating statistics with error notification email in SQL server 4 96
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. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

810 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