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