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

StackOverflow https://stackoverflow.com/questions/278085

  •  07-07-2019
  •  | 
  •  

Question

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.

Was it helpful?

Solution

.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.

OTHER TIPS

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

Drag and drop doesn't work in Visual Studio 2010. Editing the .RC file does work but be careful. For me the ID for the dialog showed up with *ID_etc*. I copied it and removed the *'s and it seemed to fix the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top