Solved

Component Reuse

Posted on 1998-06-16
6
133 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 105
wait notify demo infinite loop 3 121
pre4 challenge 19 103
Sed question 2 100
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. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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