Switch to from C# to C++