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. how to replace a .exe's icon from ICO file?

how to replace a .exe's icon from ICO file?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 Posts 2 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.
  • X Offline
    X Offline
    Xiaodi_Liu
    wrote on last edited by
    #1

    I want to replace a .exe's icon from ICO fiel use code.change see in Explorer view for the .exe file. Best Regards, Steven.

    D 1 Reply Last reply
    0
    • X Xiaodi_Liu

      I want to replace a .exe's icon from ICO fiel use code.change see in Explorer view for the .exe file. Best Regards, Steven.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      If you are wanting to change the icon that Windows Explorer uses for a given file type, select Folder Options from the Tools menu, click the File Types tab, select the file type, click the Advanced button, click the Change Icon button. If you are wanting to change an icon resource in the EXE itself, you'll need to use UpdateResource() twice, once to delete the old icon resource and again to add the new icon resource.


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      X 1 Reply Last reply
      0
      • D David Crow

        If you are wanting to change the icon that Windows Explorer uses for a given file type, select Folder Options from the Tools menu, click the File Types tab, select the file type, click the Advanced button, click the Change Icon button. If you are wanting to change an icon resource in the EXE itself, you'll need to use UpdateResource() twice, once to delete the old icon resource and again to add the new icon resource.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        X Offline
        X Offline
        Xiaodi_Liu
        wrote on last edited by
        #3

        Thanks,David. I'll to try and tell the result for u. Just now, I want to replace it via PE stuct,hehe, It's too difficult.

        D 1 Reply Last reply
        0
        • X Xiaodi_Liu

          Thanks,David. I'll to try and tell the result for u. Just now, I want to replace it via PE stuct,hehe, It's too difficult.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Xiaodi_Liu wrote: I want to replace it via PE stuct,hehe, It's too difficult. While that is a good learning exercise, it's a tad too much, especially when a much simpler solution is available.


          Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

          X 1 Reply Last reply
          0
          • D David Crow

            Xiaodi_Liu wrote: I want to replace it via PE stuct,hehe, It's too difficult. While that is a good learning exercise, it's a tad too much, especially when a much simpler solution is available.


            Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

            X Offline
            X Offline
            Xiaodi_Liu
            wrote on last edited by
            #5

            Now I found a quesstion. The UpdateResource function can not use for win95/98. How do I UpdateResource for win95/98? Thanks.

            D 1 Reply Last reply
            0
            • X Xiaodi_Liu

              Now I found a quesstion. The UpdateResource function can not use for win95/98. How do I UpdateResource for win95/98? Thanks.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              That function is unavailable on Windows 9x.


              Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

              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