is this possible?
-
I have an mdi applicaiton that has some of the same features as an existing project. I really do not want to redesign everything. So can i import a dialog box from one project into another? if so how? Thank you.
It doesn't seem like you can get VC to save or export dialog resources alone, so you have 2 options: 1) Open the resource.rc file as text and copy the dialog resource info into clipboard. Open the new resource file as text and paste clipboard contents into new file. 2) Make a copy of the resource.rc open it as text and remove all un-nessecary contents. Cheers! "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
-
I have an mdi applicaiton that has some of the same features as an existing project. I really do not want to redesign everything. So can i import a dialog box from one project into another? if so how? Thank you.
Copy the .rc file from the source project to a safe dir (working copy) then, with the dest project open, open this .rc file - you should find you can drag and drop what you want into your new project, and it shouldn't be to hard to reuse any existing CDialog based class as well.
-
I have an mdi applicaiton that has some of the same features as an existing project. I really do not want to redesign everything. So can i import a dialog box from one project into another? if so how? Thank you.
In VS you can open up multiple *.rc files at once and copy/paste between them. This is easier than dealing with them as text files, as you don't have to worry about assigning resource IDs, copying bitmap or icon files, etc. farewell goodnight last one out turn out the lights
Smashing Pumpkins, Tales of a Scorched Earth
-
Copy the .rc file from the source project to a safe dir (working copy) then, with the dest project open, open this .rc file - you should find you can drag and drop what you want into your new project, and it shouldn't be to hard to reuse any existing CDialog based class as well.
I didn't even think of doing it that way! Sweet...theres a time saver! Thanx! "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
-
I didn't even think of doing it that way! Sweet...theres a time saver! Thanx! "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
Yep - but make a copy of the original .rc, because VC seems to treat it as a 'move' operation rather than a 'copy' - by default anyway.
-
I didn't even think of doing it that way! Sweet...theres a time saver! Thanx! "An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
I've been inserting the reference project into the new project, then dragging and dropping the resources into the new project. (and then break the link) One cool thing is that it seems to copy whatever bitmaps, etc that you need as well. I'm not even sure why it works, but it's slick. You have to join projects, though. You can break them apart later. --------------------------------------------------------------------------------- I wish I had a way to have multiple *.rc files for a project - when we are using Visual Source Safe, one guy wants to change his dialog somewhere, but he has to check out the main rc file, and it locks us all out of it. (and he leaves it checked out and we are stuck for a while) I started playing around with doing #include's into the resource file to let us split it up, but didn't get too far.