Thread: Portable Version Resource

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246

    Question Portable Version Resource

    Is there a way to save and load version info in an exe file in a portable way?

    [EDIT]Setting version info once in built time and reading them in run time.
    [/EDIT]
    Does adding version resource in Visual Studio make it not portable?

    [EDIT]
    I can add a version resource to my project in VC++ and reading that info using Win32 API. But what if I don't want to use Win32 on this matter?
    Last edited by siavoshkc; 04-06-2010 at 02:56 PM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by siavoshkc View Post
    Is there a way to save and load version info in an exe file in a portable way?

    Does adding version resource in Visual Studio make it not portable?
    You mean, you want to be able to alter the version information in an already-built program?

    There have been discussions here in the past about how to embed information into a program file that can be read and written after the fact, in a portable way. Mostly, it involves declaring a character array of sufficient size, prefixed by some kind of marker bytes that allows a resource tool to locate the array inside the executable.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    You mean, you want to be able to alter the version information in an already-built program?
    No, I mean just setting them once in built time and reading them in run time.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. No Version info tab in file properties?
    By cpjust in forum Windows Programming
    Replies: 2
    Last Post: 06-03-2008, 03:42 PM
  3. Generic Resource Manager, 90% done! Boost enabled!
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 02-20-2006, 07:37 PM
  4. Templated Generic Resource Manager, WIP..
    By Shamino in forum C++ Programming
    Replies: 13
    Last Post: 02-19-2006, 06:29 PM
  5. Dev C++ Version 5
    By Zoalord in forum C++ Programming
    Replies: 3
    Last Post: 08-30-2003, 01:56 PM

Tags for this Thread