Link to home
Start Free TrialLog in
Avatar of e6694811
e6694811

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Vinayak Kumbar
Vinayak Kumbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vinayak Kumbar
Vinayak Kumbar

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
Avatar of e6694811

ASKER