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. Get exe File version, icon etc programmatically

Get exe File version, icon etc programmatically

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionannouncement
5 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.
  • M Offline
    M Offline
    munawar1968
    wrote on last edited by
    #1

    Hi folks.. Is there a way to read an exe file's version info, icon etc programatically using C/C++ ? e.g How do we read notepad.exe's version info via C/C++ calls? thanks in advance..

    T 1 Reply Last reply
    0
    • M munawar1968

      Hi folks.. Is there a way to read an exe file's version info, icon etc programatically using C/C++ ? e.g How do we read notepad.exe's version info via C/C++ calls? thanks in advance..

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      munawar1968 wrote: exe file's version info GetFileVersionInfo munawar1968 wrote: icon ExtractIcon

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta

      M 1 Reply Last reply
      0
      • T ThatsAlok

        munawar1968 wrote: exe file's version info GetFileVersionInfo munawar1968 wrote: icon ExtractIcon

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        M Offline
        M Offline
        munawar1968
        wrote on last edited by
        #3

        Thanks man.. can this info (gathered via getfileversion,extracticon) be used to set the version /icon of another exe file programmatically?

        T 1 Reply Last reply
        0
        • M munawar1968

          Thanks man.. can this info (gathered via getfileversion,extracticon) be used to set the version /icon of another exe file programmatically?

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          munawar1968 wrote: another exe file programmatically? Nope, you have to use these api for Programmatically changing resource in other file :- BeginUpdateResource,UpdateResource and EndUpdateResource. And Here is article relating to above Api's http://www.codeproject.com/cpp/UpdateResource.asp[^]

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          M 1 Reply Last reply
          0
          • T ThatsAlok

            munawar1968 wrote: another exe file programmatically? Nope, you have to use these api for Programmatically changing resource in other file :- BeginUpdateResource,UpdateResource and EndUpdateResource. And Here is article relating to above Api's http://www.codeproject.com/cpp/UpdateResource.asp[^]

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta

            M Offline
            M Offline
            munawar1968
            wrote on last edited by
            #5

            Exactly what i wanted... thanks a million

            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