Solved

What is the difference between .h and .hh files?

Posted on 2004-10-11
2
788 Views
Last Modified: 2006-11-17
Hi,
What is the difference between .h and .hh files?
I know both are extensions for header files but I have both type of files in my environement.
Is it got to do with third party library?

Thanks
0
Comment
Question by:dkamdar
2 Comments
 
LVL 17

Accepted Solution

by:
rstaveley earned 50 total points
ID: 12278583
It is just a convention used by your library vendor. You might find that they put their C++ stuff in .hh headers. You might find that they put headers which you are not supposed to include directly yourself in the .hh files.
0
 
LVL 12

Expert Comment

by:stefan73
ID: 12278677
Hi dkamdar,
The C/C++ preprocessor isn't picky. It will include anything that is in the include path. So, naming is just a convention.

Cheers!

Stefan
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now