Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. build project with chosen icon

build project with chosen icon

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leenmie
    wrote on last edited by
    #1

    I want to build my project whose execute file (.exe) have an icon I chose. How could i do it ?

    R R 2 Replies Last reply
    0
    • L leenmie

      I want to build my project whose execute file (.exe) have an icon I chose. How could i do it ?

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      The first icon (lowest numbered identifier) in the resource section of your executable will be used as the application icon. Just add an icon to your project and give it the ID 1.

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      1 Reply Last reply
      0
      • L leenmie

        I want to build my project whose execute file (.exe) have an icon I chose. How could i do it ?

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Assuming you are using MFC, the ID of your application's icon will be IDR_MAINFRAME (i think.. check that). Now, import the icon you want and rename the ID of it to IDR_MAINFRAME (delete the previous icon before this or rename the ID of that to something else). Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

        L S 2 Replies Last reply
        0
        • R Rajesh R Subramanian

          Assuming you are using MFC, the ID of your application's icon will be IDR_MAINFRAME (i think.. check that). Now, import the icon you want and rename the ID of it to IDR_MAINFRAME (delete the previous icon before this or rename the ID of that to something else). Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

          L Offline
          L Offline
          leenmie
          wrote on last edited by
          #4

          No, im using raw api. That's the problem.

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Assuming you are using MFC, the ID of your application's icon will be IDR_MAINFRAME (i think.. check that). Now, import the icon you want and rename the ID of it to IDR_MAINFRAME (delete the previous icon before this or rename the ID of that to something else). Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

            S Offline
            S Offline
            Shraddhan
            wrote on last edited by
            #5

            I assume that the program was created with the default MFC icon. So just replace the icon file with one of your choice, and rebuild the resources. Simplest is to just rebuild the whole project. Then the new icon is used instead of the old one. Shraddhan

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups