summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2004-12-02 00:23:22 +0000
committerleo2004-12-02 00:23:22 +0000
commitf08874bc1384933782bbbe384746ea9caf9d48af (patch)
treeca51447af20b3922f792b5fe11e3b4ee8711bbe1
parent7a4d9fd9e4c0b651c64c912b1d42c9f38fef2a2b (diff)
Updated version information.
git-svn-id: http://svn.leocad.org/trunk@364 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rw-r--r--win/Leocad.cpp16
-rw-r--r--win/config.h4
2 files changed, 11 insertions, 9 deletions
diff --git a/win/Leocad.cpp b/win/Leocad.cpp
index 1b5895c..8bbcc80 100644
--- a/win/Leocad.cpp
+++ b/win/Leocad.cpp
@@ -305,20 +305,22 @@ void CCADApp::OnHelpUpdates()
if (InternetReadFile(hHttpFile, szContents, dwFileSize, &dwBytesRead))
{
- float ver, lib;
- if (sscanf (szContents, "%f %f", &ver, &lib) == 2)
+ float ver;
+ int lib;
+
+ if (sscanf (szContents, "%f %d", &ver, &lib) == 2)
{
CString str;
- if (ver > LC_VERSION_MAJOR + (float)LC_VERSION_MINOR/100)
- str.Format("There's a new version (%0.2f) on the home page.\n", ver);
+ if (ver > LC_VERSION_MAJOR + (float)LC_VERSION_MINOR/100 + (float)LC_VERSION_PATCH/1000)
+ str.Format("There's a newer version of LeoCAD available for download (%0.3f).\n\n", ver);
else
- str = "You are using the latest version of the program.\n";
+ str = "You are using the latest version of LeoCAD (" LC_VERSION ").\n";
if (lib > project->GetPiecesLibrary ()->GetPieceCount ())
- str += "There's an updated piece library.";
+ str += "There are new pieces available.\n";
else
- str += "There are no new pieces.";
+ str += "There are no new pieces available at this time.\n";
AfxMessageBox(str);
}
diff --git a/win/config.h b/win/config.h
index fc126a2..746273e 100644
--- a/win/config.h
+++ b/win/config.h
@@ -9,9 +9,9 @@
#define LC_VERSION_MAJOR 0
#define LC_VERSION_MINOR 73
-#define LC_VERSION_PATCH 0
+#define LC_VERSION_PATCH 2
#define LC_VERSION_OSNAME "Windows"
-#define LC_VERSION "0.73.0"
+#define LC_VERSION "0.73.2"
#define LC_INSTALL_PREFIX "C:\\leocad"
typedef signed char lcint8;