From f08874bc1384933782bbbe384746ea9caf9d48af Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 2 Dec 2004 00:23:22 +0000 Subject: Updated version information. git-svn-id: http://svn.leocad.org/trunk@364 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Leocad.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'win/Leocad.cpp') 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); } -- cgit v1.2.3