Putting a default icon to a program

As simple as that, how can I link a bmp or jpg or png image to my .exe when building it to be shown as the default icon for the file?
This belongs into Windows programming.
You do this by adding an icon resource to your program (it must be an icon file, you cannot use other image formats).
Well, i searched a little bit and actually added an icon with a resource file. Is there a simple way to display it in the window name bar at the top of the window?
Windows should automatically use the first icon in an executable as the default program icon.
Topic archived. No new replies allowed.