Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one copy a dialog resource from one project to another in Visual Studio 6.0 or Embedded VC++ (eVC)?

I've got two branches of code. 1 has a dialog box that the other doesn't, but because of politics the dialog box wasn't moved into the newest branch. Now they want it in...

So is it possible to copy a dialog box from one project to another. There apears to be an export and import feature however it's greyed out.

like image 552
baash05 Avatar asked Nov 10 '08 15:11

baash05


2 Answers

.RC files are simple text files. You can simply copy/paste the DIALOG text from one .RC file to the other. Make sure that you copy the corresponding RESOURCE.H entries as well.

Alternatively, you might be able to open both .RC files and then simply drag-and-drop the dialog from one to the other.

like image 134
Roger Lipscombe Avatar answered Nov 08 '22 19:11

Roger Lipscombe


Update for Visual Studio 2010 - 2013:

You can still drag-drop and copy-paste, but only outside of your project / solution.

Close solution, open both RC as files without any open solution, and go. For drag, "Hold down the CTRL key and drag the resource to the second .rc file. For example, drag IDD_DIALOG1 from Source1.rc to Source2.rc."

Microsoft - How to Copy Resources

like image 21
Dave S Avatar answered Nov 08 '22 21:11

Dave S