Hi,
I have a collection of files needed their version to be set, This should be
done programmatically, I wonder... is there any existing API that enable
modification/addition of version to an existing binary?
It is possible to parse the '.rsrc' section manually, however, I am trying
to avoid this, any samples, pointers or advice would be appreciated.

Signature
Nadav
http://www.ddevel.com
Kyle Alons - 06 Oct 2004 16:07 GMT
http://www.elphin.com/products/stampver.html

Signature
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com
> Hi,
>
[quoted text clipped - 5 lines]
> It is possible to parse the '.rsrc' section manually, however, I am trying
> to avoid this, any samples, pointers or advice would be appreciated.
Nadav - 06 Oct 2004 16:49 GMT
I would rather get an explenation of how to programmatically achieve
versioning, the link you have provided doesn't give any clue of how to
implement such a functionality, rather it provide a tool to do that
> http://www.elphin.com/products/stampver.html
>
[quoted text clipped - 7 lines]
> > It is possible to parse the '.rsrc' section manually, however, I am trying
> > to avoid this, any samples, pointers or advice would be appreciated.
William DePalo [MVP VC++] - 06 Oct 2004 20:42 GMT
> I have a collection of files needed their version to be set, This should
> be
> done programmatically, I wonder... is there any existing API that enable
> modification/addition of version to an existing binary?
The version information is a resource:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/Win
dowsUserInterface/Resources/VersionInformation/AboutVersionInformation.asp
The Win32 API includes BeginUpdateResource(), UpdateResource() and
EndUpdateResource() functions to update resources after a module has been
linked:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/Win
dowsUserInterface/Resources/IntroductiontoResources/UsingResources.asp
I haven't tried it, but you might be able to cook something using both
links.
There is no issue if the modules in question are yours, but there might be
intellectual property issues otherwise.
Regards,
Will