all groups > visual studio .net ide > july 2006 >
You're in the

visual studio .net ide

group:

only include header/cpp file?


only include header/cpp file? Neo
7/31/2006 11:08:27 PM
visual studio .net ide:
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
Re: only include header/cpp file? pvdg42
8/1/2006 6:40:05 AM

[quoted text, click to view]
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?

Re: only include header/cpp file? Neo
8/2/2006 1:30:15 AM
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]
Re: only include header/cpp file? pvdg42
8/2/2006 8:48:49 AM

[quoted text, click to view]
In Solution Explorer, right-click on the Header Files folder and select
Add->Existing Item...
Navigate to, and select your .h file.

Re: only include header/cpp file? Neo
8/3/2006 1:35:29 AM
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]
Re: only include header/cpp file? Andrew McDonald
8/6/2006 5:31:29 PM
"Neo" <momer114@gmail.com> wrote...
[quoted text, click to view]

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

AddThis Social Bookmark Button