copying a dialog box

I realise this if for 2005 but hopefully you can help, i have visual studio 2003 and i'm using the c++ sharp,  i have a dialog box in one old resource file (rc file) that i want to put into another resource file (rc file).  How do i copy over just the dialog, i have tried the old copy and paste etc but it doesnt work, and there doesnt seem to be a way to import just a dialog

any ideas

thanks


Answer this question

copying a dialog box

  • KRS India

    When opening the resource files click on "Open With", don't use "Resource View" use the "Resource Editor".
    Open the second file rc file in the same way. Now you can use Copy&Paste and Drag&Drop! The "Resource Editor" allows copy&paste and drag&drop. The "Resource View" not.
    In the solution explorer you can right click on the RC file and select Open With from here in the context menu.



  • Steven Bone

    ok i have tried that, i have to different instances of visual studio running to do this and it doesnt seem to allow me to copy from one rc file to another each file being in different instances, and i cant temporarily add on rc file into another instance any ideas

    thanks

    will

  • James A P

    That's correct. Copy&Paste does not work across different VS.NET instances.
    Open the second rc file in the other project with the standard open dialog and select open with as described above.



  • r_currie

    sorry that should be just c++, whoops

    thanks

  • PeterWone

    hi..
    I worked with VC++ Projects,in my carrier i came across editing of resource file,in some situation i also need to copy some resource
    paste in to other resource files. we can do this easly but should be careful while editing the files. rigth click on resource file and open in Editplus
    or notepad for editing search for certain dialog in it and copy the dialog resource information, see for each begin u have end is included in copying.


    In Resource file we have information as block wise for version,Accelator keys, Dialogs, Icons, Bitmaps, Menus.

    When we are familar with content which should in it we can play games with it.


  • copying a dialog box