Friday, July 31, 2009

Change Icon Of Exe in Visual C Program.?

I am programming with Visua C++ compiler. But I am strictly writing a C Program. I want to change the icon of generated exe file. How do I do that?





If you answer is "right click on exe and in properties tab change icon.. please don't answer".. that is lame, not protable and not what I am looking for.





Thanks in advance.

Change Icon Of Exe in Visual C Program.?
From the IDE you should be able to edit or create a resources (.rc) file. This file controls what icons are available and used with Win32 API and MFC applications. If you are writing a C program in "DOS" mode, no resource file is used and so you have no direct icon control other than the lame answer you complained about. Please note, *IF* you aren't using Win32 API(available in C) or the MFC(not available in C!), then you *CAN'T* use a resource file and control the icon without setting it manually or through a program installation you've written for your program.


Sorry, if your program runs in a DOS box, you just can't do certain things that work with the GUI. That's progress!


No comments:

Post a Comment