debugged in c++, transferred to visual studio - fabrizio