How to reuse a dialog resource in another project
-
Hi, In some MFC projects I spend quite a lot of time designing a dialog box and I need it in another project I can copy paste class codes but I have to redesign the dialog resource. I tried to copy a text segment that seemed was about the dialog I was interested in(there were a few lines of empty space then IDD_MY_DIALOG_OF_INTEREST and some text and again some lines of empty space) from .rc file of another project to another project but after that the latter project couldn't load any of its resources until I deleted the inserted segment. Is there any way? regards :) ,
-
Hi, In some MFC projects I spend quite a lot of time designing a dialog box and I need it in another project I can copy paste class codes but I have to redesign the dialog resource. I tried to copy a text segment that seemed was about the dialog I was interested in(there were a few lines of empty space then IDD_MY_DIALOG_OF_INTEREST and some text and again some lines of empty space) from .rc file of another project to another project but after that the latter project couldn't load any of its resources until I deleted the inserted segment. Is there any way? regards :) ,
I do it this way 1. Copy the RC file from which you want to reuse the dialog to new Project folder 2. Add the copied rc file to your new project. 3. It will show you warning that there can be only one rc active but just say "ok" on it. 4. Now I just open the resource view and drag the dialogs or resources that you want from copied rc file to the new projects file. 5. After you are done just remove the copied rc file from the project. I hope it helps. I do this way because i don't have to bother about the formatting in rc file.
Regards, Sandip.
-
I do it this way 1. Copy the RC file from which you want to reuse the dialog to new Project folder 2. Add the copied rc file to your new project. 3. It will show you warning that there can be only one rc active but just say "ok" on it. 4. Now I just open the resource view and drag the dialogs or resources that you want from copied rc file to the new projects file. 5. After you are done just remove the copied rc file from the project. I hope it helps. I do this way because i don't have to bother about the formatting in rc file.
Regards, Sandip.
i published above on my programmig tips site with your name offcourse. hope this doesn't present any problem !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>
-
i published above on my programmig tips site with your name offcourse. hope this doesn't present any problem !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>