Converting project to C++