switch dtvideo to c++