开发者

Adding an icon to the windows console application

开发者 https://www.devze.com 2023-01-16 07:13 出处:网络
Is there any way to add an icon 开发者_C百科to a windows console application (that will be displayed in folders and in the task bar)?Go to Project Properties and select an icon.I realize that the OP s

Is there any way to add an icon 开发者_C百科to a windows console application (that will be displayed in folders and in the task bar)?


Go to Project Properties and select an icon.


I realize that the OP spec'd C#, but I came here looking for the same answer for C+, so I thought I'd post that answer.
To set an app icon for a C++ console app, you add a .RC file to the project, then add an .ico to the .rc, then recompile. The .ico will automatically become the app's icon.

0

精彩评论

暂无评论...
验证码 换一张
取 消