Migrating VC++6 Dialog classes
-
Once upon a time (VS 6) I used to be able to copy a dialog resource from another project into my current project. As I get my feet wet with VS.NET 2002 I'm lost trying to figure out how to do it. From what I gather, I can "Add Existing Item" from the project menu, but this ends up incorporating the whole RC file from my other project including any other dialogs, bmps, icons etc. What I now have is a xyzDlg.cpp a xyzDlg.h and the dialog resource itself located in a .rc file. How on earth can I make a COPY of this dialog item so I can use it for my .NET app? Note, I need to copy this resource not incorporate anything from the other project. I can't risk damaging the other VS6 project and it's (the other VS6.0 project) going to be archived off-line as soon as I have a copy so I don't somehow currupt it. I feel awfully stupid, this should be easy. Help? PAC
-
Once upon a time (VS 6) I used to be able to copy a dialog resource from another project into my current project. As I get my feet wet with VS.NET 2002 I'm lost trying to figure out how to do it. From what I gather, I can "Add Existing Item" from the project menu, but this ends up incorporating the whole RC file from my other project including any other dialogs, bmps, icons etc. What I now have is a xyzDlg.cpp a xyzDlg.h and the dialog resource itself located in a .rc file. How on earth can I make a COPY of this dialog item so I can use it for my .NET app? Note, I need to copy this resource not incorporate anything from the other project. I can't risk damaging the other VS6 project and it's (the other VS6.0 project) going to be archived off-line as soon as I have a copy so I don't somehow currupt it. I feel awfully stupid, this should be easy. Help? PAC
Under VS6, I simply used to open both RC files (the current project and the one to import from), then simply Control-C the dialog template and Control-V it into the new RC. Then copyied the .cpp/.h manually and inserted in the project manually. I believe that may work with VS7 too but I haven't tried in a while.
-
Under VS6, I simply used to open both RC files (the current project and the one to import from), then simply Control-C the dialog template and Control-V it into the new RC. Then copyied the .cpp/.h manually and inserted in the project manually. I believe that may work with VS7 too but I haven't tried in a while.
Actually, it kind of works and it kind of doesn't. I've been playing all day and have got the dialog resource in, but it's different. With VC6 you could open the other rc file, hit copy then paste directly into the resource tab in class wizard. With the new VC.NET all I've been able to figure out so far is open both old and new rc file in the editor and do a copy/paste. The bad part is I still haven't been able to figure out how to link the cpp and h files with that dialog resource. If you run their wizard and tell it to use the old cpp and h files it just tacks on a new class at the bottom of each file resulting in two sets of implementations and declarations. Obviously there has to be a way to do it, but it sure is kicking my behind :( PAC