Copying dialog resources between projects


 I'm developing two different projects .Both require the same dialog class .I ,ve already created this dialog in the first
project as a resource ,using the dialog template ,as usual .My question is :how to copy this dialog resource from one project to
another to avoid repeating the same steps  again ?Note it implies copying the template ,the files ,the member variables and so on.

 Thanks in advance.
e6694811Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vinayak KumbarSr Program ManagerCommented:
Hi,

I have done the same thing saveral times.

Open the rc file in the text mode. Copy the dialog related data into the new projects rc file. Then define all the IDs in the resource.h file.
 Copy the related files into the new workspace folder and add them to the project using add to project option.

That will solve Ur problem

Hope this helps.
VinExpert
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vinayak KumbarSr Program ManagerCommented:
Hi,

the dialog data in the first rc file will be something like this
IDD_DIALOG1 DIALOG DISCARDABLE  0, 0, 234, 137
STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU |
    WS_THICKFRAME
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
//controls...
END

copy whole thing to the new rc file which is opened as text in the  dialog section.

And then open the resource.h and define the Ids. and include those files into the new project.

OR

Open the old rc file and copy the template and paste into the new dilaog temple in the new project. Then give the same ID. then U can include the files into the project.

Try it out.
VinExpert
0
e6694811Author Commented:

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.