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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Using UpdateResource() to change app's icon

Using UpdateResource() to change app's icon

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomtoolshelptutorial
1 Posts 1 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.
  • K Offline
    K Offline
    kb
    wrote on last edited by
    #1

    Hi, I am trying to write a small utility that allows users to customise the icon of my program, which is a precompiled EXE (similar in function to MicroAngelo etc, but much simpler, with only the option of choosing the new icon, which will then be applied to the EXE). I believe UpdateResource() can do this for NT (and the _UpdateResource class over at http://www.codeguru.com/misc/resources.html does pretty much the same for Win 9x). However, I can't figure out how to use UpdateResource correctly. I can't even get the sample code from MSDN to compile correctly. Could anybody tell me how I can use BeginUpdateResource(), UpdateResource() and EndUpdateResource() to swap the icon in an EXE file for another .ico file (ie the end user will just have to select an .ico file)? Many, many thanks to anybody who can help or give me any pointers. All the best, KB

    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