summaryrefslogtreecommitdiff
path: root/win/Leocad.cpp
diff options
context:
space:
mode:
authorleo2004-12-02 00:23:22 +0000
committerleo2004-12-02 00:23:22 +0000
commitf08874bc1384933782bbbe384746ea9caf9d48af (patch)
treeca51447af20b3922f792b5fe11e3b4ee8711bbe1 /win/Leocad.cpp
parent7a4d9fd9e4c0b651c64c912b1d42c9f38fef2a2b (diff)
Updated version information.
git-svn-id: http://svn.leocad.org/trunk@364 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Leocad.cpp')
-rw-r--r--win/Leocad.cpp16
1 files changed, 9 insertions, 7 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);
}