Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
getting a fire fox page (view page source ) in c++ 6 42
C++ Class Serialization, Encapsulation and Formatted Output 8 76
C++ question 3 70
FMX TCameraComponent Problem 2 82
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. …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

792 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