In Visual Studio 2022, I thought changing /SUBSYSTEM:CONSOLE to /SUBSYSTEM:WINDOW from "empty project" and "Window Desktop project with empty toggle on" produces exactly same result, or executable, so far because all project settings were identical and winmain entry point worked properly with #include <windows.h>.
However, I recently found out that executable compiled from "empty project" set to /SUBSYSTEM:WINDOW executable does not work with "Open with" while "Window Desktop project with empty toggle on" works.
Message box pops up and says "Cannot associate a file type with a program. The program you have selected cannot be associated with this file type. Please choose another program."
This means there IS a difference between them which is neither code nor project setting. Does anyone can explain what differences exist between the two?