# FAQ(02) - C++ is not default, C is - how do I change this ??

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## QUESTION (02)

C++ is not default, C is - how do I change this ??

## ANSWER

If your main programming language is C++, then you will require the `.def` and `.h` files to be loaded in C++ mode by default, rather than 'C'. To modify this hen the order of the file hooks has to be re-defined.

Within your <user>.emf, over-ride the default ordering by including the line:-

    add-file-hook ".h .def"                                     fhook-cpp

This adds a newer binding for "`.h`" and "`.def`" to C++, over-riding the existing 'C' binding.

[FAQ Index].

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>