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
[quoted text, click to view] pvdg42 wrote:
> "Neo" <momer114@gmail.com> wrote in message
> news:1154412507.052822.59560@b28g2000cwb.googlegroups.com...
> >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
> > such option to include only header/cpp file.
> >
> > Any one tells me, how to resolve this irritated problem?
> >
> > Regards,
> > -aims
> >
> Could you please provide an example of what you are trying to do? The term
> "header/cpp file" is a bit confusing. Are you referring to a class
> declaration .h file that includes inline member function definitions?
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
[quoted text, click to view] pvdg42 wrote:
> "Neo" <momer114@gmail.com> wrote in message
> news:1154507414.985412.222380@h48g2000cwc.googlegroups.com...
> > 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
> >
> In Solution Explorer, right-click on the Header Files folder and select
> Add->Existing Item...
> Navigate to, and select your .h file.
"Neo" <momer114@gmail.com> wrote...
[quoted text, click to view] > pvdg42 wrote:
>> "Neo" <momer114@gmail.com> wrote...
>>
>>> 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.
>>
>> In Solution Explorer, right-click on the Header Files folder and select
>> Add->Existing Item... Navigate to, and select your .h file.
>
> 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?
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
Don't see what you're looking for? Try a search.