Well, I'm not really sure what's wrong but you are still using the dynamic C/C++ runtime. Anyway chances are better for newer windows to have that installed. If you want share here the whole project ready for compilation with VS 2017 and I will check what's wrong.