Solved

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

Posted on 2004-10-11
2
766 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

708 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

16 Experts available now in Live!

Get 1:1 Help Now