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 I can Get DLL Version Number from resource file

How I can Get DLL Version Number from resource file

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasejsontutorialannouncement
4 Posts 3 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.
  • J Offline
    J Offline
    jinzhecheng
    wrote on last edited by
    #1

    I am writting a DLL, and want to provide a function so that Client can query DLL version by calling this function. As you already know, the version number is in the resource file, I tries LoadString() API call, but failed. Can anyone give some advice?? There are many articles on how to query DLL version given an exe or dll file, my POINT is , how can I do it inside the dll it self ??? Thanks alot!

    M D 2 Replies Last reply
    0
    • J jinzhecheng

      I am writting a DLL, and want to provide a function so that Client can query DLL version by calling this function. As you already know, the version number is in the resource file, I tries LoadString() API call, but failed. Can anyone give some advice?? There are many articles on how to query DLL version given an exe or dll file, my POINT is , how can I do it inside the dll it self ??? Thanks alot!

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Search CP for "versioninfo", you'll find many articles on the subject

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      1 Reply Last reply
      0
      • J jinzhecheng

        I am writting a DLL, and want to provide a function so that Client can query DLL version by calling this function. As you already know, the version number is in the resource file, I tries LoadString() API call, but failed. Can anyone give some advice?? There are many articles on how to query DLL version given an exe or dll file, my POINT is , how can I do it inside the dll it self ??? Thanks alot!

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

        jinzhecheng wrote:

        There are many articles on how to query DLL version given an exe or dll file, my POINT is , how can I do it inside the dll it self ???

        Are you saying that GetFileVersionInfo() cannot be used in a DLL where the DLL's name is used as the first argument?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "We will be known forever by the tracks we leave." - Native American Proverb

        J 1 Reply Last reply
        0
        • D David Crow

          jinzhecheng wrote:

          There are many articles on how to query DLL version given an exe or dll file, my POINT is , how can I do it inside the dll it self ???

          Are you saying that GetFileVersionInfo() cannot be used in a DLL where the DLL's name is used as the first argument?


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "We will be known forever by the tracks we leave." - Native American Proverb

          J Offline
          J Offline
          jinzhecheng
          wrote on last edited by
          #4

          Thanks Dave, I thought this string is same as other string in resource file This is a special case, instead of load string, use getfileversioninfo(). \ Thank you again!~

          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