Replaced DMCF API of C with C++