3
I need a way to get the version of my app on C++ Builder, to put in the Caption of a TLabel
, which will be displayed next to a system presentation home screen.
3
I need a way to get the version of my app on C++ Builder, to put in the Caption of a TLabel
, which will be displayed next to a system presentation home screen.
2
Similar to your question on Soen.
But as it comes to Delphi, I use a function that works both in Builder and Delphi:
function GetAppVersion: string;
var
Versao: LongRec;
begin
Versao:= LongRec(GetFileVersion(ParamStr(0)));
Result := Format('%d.%d', [Versao.Hi, Versao.Lo])
end;
To use just receive the function result GetAppVersion
in the Caption of the component.
Where:
Versao.Hi = Major Version
Versao.Lo = Minor Version
Browser other questions tagged c++ delphi
You are not signed in. Login or sign up in order to post.