Added managed wrapper for c++ code.