diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
| commit | e3ea58d23aae3aca6f382c4b95ec31a1f7875cae (patch) | |
| tree | 6aa82a196df5ce3330d112e047febc348c44dc1d /GetVersion.h | |
23.186.0.23.18
Diffstat (limited to 'GetVersion.h')
| -rw-r--r-- | GetVersion.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/GetVersion.h b/GetVersion.h new file mode 100644 index 0000000..30c0161 --- /dev/null +++ b/GetVersion.h @@ -0,0 +1,28 @@ +
+char VersionString[50]="";
+char VersionStringWithBuild[50]="";
+int Ver[4] = {Vers};
+char TextVerstring[50] = "";
+
+VOID GetVersionInfo(TCHAR * File)
+{
+#ifndef LINBPQ
+
+ char isDebug[40]="";
+
+#ifdef SPECIALVERSION
+ strcat(isDebug, SPECIALVERSION);
+#endif
+#ifdef _DEBUG
+ strcat(isDebug, "Debug Build ");
+#endif
+
+ sprintf(VersionString,"%d.%d.%d.%d %s", Ver[0], Ver[1], Ver[2], Ver[3], isDebug);
+
+ sprintf(TextVerstring,"V%d.%d.%d.%d", Ver[0], Ver[1], Ver[2], Ver[3]);
+
+ sprintf(VersionStringWithBuild,"%d.%d.%d Build %d %s", Ver[0], Ver[1], Ver[2], Ver[3], isDebug);
+
+ return;
+#endif
+}
|
