using matlab and vc with c++ as tools