See also: hdevelop -export_project (command line switch).
Exports a selected procedure library or the local procedures of the current program as a C++ or C# project, which can be integrated into your own projects. See the full description at Library Project Export.