Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / August 2006

Tip: Looking for answers? Try searching our database.

only include header/cpp file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neo - 01 Aug 2006 07:08 GMT
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
pvdg42 - 01 Aug 2006 12:40 GMT
>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 - 4 lines]
> 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?
Neo - 02 Aug 2006 09:30 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
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.