Copying classes between projects
-
Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul
-
Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul
You'll either need to copy the entire .RC file, or copy/paste the relevant pieces from one .RC file to the other.
-
Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul
there's an article here on CP that talks about that, but I don't know what to search for. one way (I think) could be to copy-n-paste the dialog between 2 instances of VC and copy-n-paste the dialog files and insert them into you new project. but you have to be carefull of the resource ID numbers.
Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
-
Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul
-
Can anyone give me some advice on coping a whole dialog with all its resources (like the menu bar, ClassView, and ClassWizard info) from one project into another? It must be something that people do all the time, yet I couldn't find anything usefull by googling it. Paul
The most reliable way I've found of doing this is by hand, using the text editor. Copy/paste the resources out of the .RC file and into the destination. Don't forget to copy/paste the DESIGNINFO section if there is one. You mentioned menus; you'll have to copy the menu as well. Copy the resource ID's from the original resource.h into the destination. You may need to renumber the resource ID's so that they don't conflict. The IDE (VC6, VS.NET 2002, and VS.NET 2003) will let you cut/paste controls, but it's not terribly smart about whole dialogs.
Software Zen:
delete this;