Create a resource file, e.g.,
resource.rc and add it to your project.
If you want to add an Icon for your application, then add a line to the resource file similar to the following.
aMAIN ICON "<Path_To_Your_Icon>/<Icon_File_Name>.ico"
Now compile your project and your application will have the icon You've specified.
Regards,
Biplab