C++ working with new API