Board index » cppbuilder » Version Info
Andrew
![]() CBuilder Developer |
Andrew
![]() CBuilder Developer |
Version Info2003-07-08 09:09:39 PM cppbuilder32 I know this has been posted about just a couple of weeks ago, but does anyone have WORKING code for BCB6 to retrieve version information for your application? It would be so greatly appreciated. Andrew. |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-07-09 12:30:40 AM
Re:Version Info
"Andrew" < XXXX@XXXXX.COM >wrote in message
QuoteI know this has been posted about just a couple of weeks before. Gambit |
Ron Eggler
![]() CBuilder Developer |
2003-07-17 02:28:49 PM
Re:Version Info
Hi,
how can i use the Version-Info in my Project? Thanx! {smallsort} |
Jonathan Arnold
![]() CBuilder Developer |
2003-07-17 08:47:21 PM
Re:Version InfoQuotehow can i use the Version-Info in my Project? 1) Use a component. TurboPower's SysTools has one for it (and a ton of other things): sourceforge.net/projects/tpsystools/ The wonderful shareware ZieglerCollection has one: www.zieglersoft.com Some free ones: Imran's TGetVer: www.imranweb.com/freesoft.htm RxLib : sourceforge.net/projects/rxlib/ Version-aware about box on Borland Community: codecentral.borland.com/codecentral/ccweb.exe/listing 2) Get the info yourself. If you have BCB5, it comes with an example in: [bcbroot]\Examples\Controls\VersionInfo Here's an example posted a little while ago: ///in header String __fastcall VersionInfo(const String &sQuery); ///in source String __fastcall TAboutForm::VersionInfo(const String &sQuery) { DWORD c; DWORD dw=0; UINT ui; char *p; LPVOID ptr; String sOut=ParamStr(0); ///ParamStr(0) holds exe name c = GetFileVersionInfoSize(ParamStr(0).c_str(), &dw); p = new char[c + 1]; /file://create the space GetFileVersionInfo(ParamStr(0).c_str(),0,c,p);//get the version info data /// Extract the language/translation information... VerQueryValue(p, TEXT("\\VarFileInfo\\Translation"), &ptr, &ui); /// ptr comes back as a ptr to two (16-bit) words containing the two halves of /// the translation number required for StringFileInfo WORD *id=(WORD*)ptr; String sBase = String( "\\StringFileInfo\\")+ IntToHex(id[0],4) + IntToHex(id[1],4) + "\\"; String qs = sBase + sQuery ; // query string VerQueryValue(p, qs.c_str(), &ptr, &ui); sOut = (char*)ptr; delete [] p; return sOut; } ///and the calls Comments->Caption=VersionInfo("Comments"); Copyright->Caption=VersionInfo("LegalCopyright"); ProductName->Caption=VersionInfo("ProductName"); Version->Caption="Version: " + VersionInfo("FileVersion"); -- Jonathan Arnold C/C++/CBuilder Keen Advice: www.keen.com/categories/categorylist_expand.asp Comprehensive C++Builder link site: www.buddydog.org/C++Builder/c++builder.html |
Ron Eggler
![]() CBuilder Developer |
2003-07-18 06:51:13 PM
Re:Version Info
Okay thx alot, did that getting work but how do Idisplay the Build number?
Thx again! Jonathan Arnold wrote: Quote>how can i use the Version-Info in my Project? |
Craig
![]() CBuilder Developer |
2003-08-22 03:21:30 AM
Re:Version Info
I put an About box on my application and have set the Project options to
include the version information. What is the procedure/function that gets that information so I can present it in my form? TIA |
Marcello Scala
![]() CBuilder Developer |
2003-09-03 02:00:05 AM
Re:Version Info
Hi All.
How can i display all fields of Version Info, on the Form Title? Thanks |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-09-03 02:34:04 AM
Re:Version Info
"Marcello Scala" < XXXX@XXXXX.COM >wrote in message
QuoteHow can i display all fields of Version Info, on the Form Title? Gambit --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03 |
Richard Guillén Reyes
![]() CBuilder Developer |
2003-10-17 03:25:56 AM
Re:Version Info
How do I reset version info in a project was assign with Auto-increment
built number and not assign include version information in project? All options will be show disable. |
Rob Kennedy
![]() CBuilder Developer |
2003-10-17 05:42:34 AM
Re:Version Info
"Richard Guill������������������������������������� wrote:
QuoteHow do I reset version info in a project was assign with Auto-increment version-information controls should be enabled. {$R *.RES} -- Rob |
Richard Guillén Reyes
![]() CBuilder Developer |
2003-10-17 07:24:20 AM
Re:Version Info
Thank you very much.
"Richard Guillén Reyes" < XXXX@XXXXX.COM >wrote in message QuoteHow do I reset version info in a project was assign with Auto-increment |
Drow Oberoth
![]() CBuilder Developer |
2003-12-30 10:54:30 PM
Re:Version Info
I'm sure this must have come up before, but I have been unable to locate any
information. How does one go about getting the version information out of an ActiveX control? All hints and examples will be greatly appreciated. Drow |
John Carlyle-Clarke
![]() CBuilder Developer |
2004-01-05 05:20:08 PM
Re:Version Info
"Drow Oberoth" < XXXX@XXXXX.COM >wrote in
QuoteI'm sure this must have come up before, but I have been unable to |
Drow Oberoth
![]() CBuilder Developer |
2004-01-06 10:30:31 AM
Re:Version Info
Actually, a method for retrieving either/or would be good.
I can get the information of the container program (in this case, IE), but I'm looking to pull out the information in the Delphi project, which would be the typelibrary I believe. "John Carlyle-Clarke" < XXXX@XXXXX.COM >wrote in message Quote"Drow Oberoth" < XXXX@XXXXX.COM >wrote in |
Jeremy Darling
![]() CBuilder Developer |
2005-10-07 04:25:43 AM
Re:Version Info
Guess that it would help if I included the version information :)
Indy 10 Delphi 6 and 7 |