I am using Visual Studio and C++ to create a console app. I want the exe file to have a custom icon instead of the default windows icon.
You could right click your project and select add->resource->Icon->import
, then you could import your icon. Because the Windows shell - normally Explorer - will use the icon with lowest ID or name as the default icon. So, you could check if the ID of the icon is the lowest. If not, you could change it.
Also, you could refer to this link .