For example I make a simple console base application which has three
files in project two cpp file (stdfx.cpp & mysample.cpp) and one is h
file(header file(stdfx.h)). Now, I want to add new header file in my
project (with the name of proto.h). In vs2k5 Version 8.0.50727.42,
there is no option to add new header file in project.
When I press Ctrl+Shift+A then go to code tab, there is four option
(Midl File, Module-Defintion File, Component Class, Installer Class),
and none of the tab gives this option to add new header/cpp file.
Is there any quick way to add new header/cpp file only? Because in
vs2k5 Version 8.0.50727.42 give option to add new class (which include
header & cpp files) but there is no option to add only header/cpp file.
-aims
> >I am working on C++ using vs2k5 Version 8.0.50727.42, but one thing
> > irritate me a lot about including only header/cpp file, there is no
[quoted text clipped - 8 lines]
> "header/cpp file" is a bit confusing. Are you referring to a class
> declaration .h file that includes inline member function definitions?
pvdg42 - 02 Aug 2006 14:48 GMT
> For example I make a simple console base application which has three
> files in project two cpp file (stdfx.cpp & mysample.cpp) and one is h
[quoted text clipped - 11 lines]
>
> -aims
In Solution Explorer, right-click on the Header Files folder and select
Add->Existing Item...
Navigate to, and select your .h file.
Neo - 03 Aug 2006 09:35 GMT
I had solved this problem by make new file in solution folder and add
that file using "Add Existing Item..." as you told me, but this
activity irritates me a lot during developing period. As we add new
class using vs2k5 GUI options, same like I want to add new header/cpp
file with in a development environment of vs2k5. How to solve this
irritating problem in vs2k5? Or know about online templates of vs2k5
for add new header/cpp file?
-aims
> > For example I make a simple console base application which has three
> > files in project two cpp file (stdfx.cpp & mysample.cpp) and one is h
[quoted text clipped - 15 lines]
> Add->Existing Item...
> Navigate to, and select your .h file.
Andrew McDonald - 06 Aug 2006 17:31 GMT
"Neo" <momer114@gmail.com> wrote...
>> "Neo" <momer114@gmail.com> wrote...
>>
[quoted text clipped - 22 lines]
> vs2k5? Or know about online templates of vs2k5 for add new header/cpp
> file?
Sounds like something is broken in your Visual Studio installation. Not only
should the option to add a new item appear alongside add existing item, so
you don't have to press Ctrl-Shift-A, but the code folder in that dialogue
should contain "C++ File (.cpp)" and "Header File (.h)".
Are you sure your project is correctly set up as a C++ project? Try
repairing or reinstalling Visual Studio.
--
Andy