VC++ version of my program