Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

programmatically setting the version of a file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nadav - 06 Oct 2004 15:59 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.