Main VC++ solution