Dev-C++ has some examples with it. You can see how the icons are used there. And you can choose an icon for your program from project options.