Until the cppclass FPC extension becomes a reality then yes, the only sane way is to write a C interface