Writing hxx file