
May 1st, 2003, 09:50 AM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
VC++ IDE Q: How to Reuse a Dialog in Different Projects?
This seems like it should be a basic question, but I've never found the answer to it.
I'm using VC++6 (my own), and sometimes VC++5 (the standard at work). In one project, I create a dialog box and the associated CDialog class. Now I want to use that exact same dialog box resource and code in another project. How do I do that?
What I've always had to do was to hand-craft the transfer. I would copy the resource over from the one project to the second, then hand-edit the resource IDs and update all the necessary definitions. Then (the easy part), I would copy and .cpp source and header files over and add them to the project.
Don't get me wrong. I am very thankful that I have access to the code for tweaking (unlike in VB), but still it seems that the IDE should have a built-in solution for what must be a very common need.
|