开发者

how do you use your own ico files for win32 program [duplicate]

This question already has answers here: 开发者_开发百科 Closed 12 years ago.

Possible Duplicate:

How do I set the icon for my application in visual studio 2008?

I use Microsoft Visual C++ 2008 express edition, And I wonder how I can use my .ico file for the exe instead of the default washing machine looking one?


you can use .rc file within your project, but by using this your icon size would be limited to only 24x24 pixels, if you want to use higher resolution icon, such as 256x256 pixels like on Vista or Windows 7, currently you can not embed it using resource compiler, as an alternative you can use this utility http://www.rw-designer.com/res/ReplaceVistaIcon.exe and invoke that tools during your project compilation as custom build step, and this is easier than using .rc


Create a resource .rc file and simply create your icon or import in to resource file, then compile your project.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜