Code worked in VS6 but not in VS2017

Printable View