C++ API and application example