"Mark" <sw****@hotmail.com> wrote in
news:##**************@TK2MSFTNGP15.phx.gbl:
I have clicked remove on a header file in the Solution Explorer. Now I
need to add it back in. I can add the .CPP, .H and/or .RESX files
individually, but they don't appear in the same way as the existing
forms (they have .resX file as a child of the .h file). Also, now when
I click on the .h file it no longer brings up the dialog editor but
instead simply takes me to editing the source code! It appears as
though I can't edit this dialog anymore! Is there a specific way you
have to add in dialogs to solution explorer?
The easiest way with VS2003 is to create a new form and then cut and
paste the contents of the .h and .resx files into the new files.
Alternatively, you can add the existing .h/.cpp/.resx files to the
project again and then in the properties (properties window) of the .h
file select "C++ Form" instead of "C++ Header" for the file type. To get
the resx to be a child node of the .h file, you'll need to manually
modify the .vcproj file and mimic what other forms have. In VS2005, we
do that automatically for you when you flip the file type from "header"
to "form".
Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.