summaryrefslogtreecommitdiff
path: root/win/Leocad.cpp
diff options
context:
space:
mode:
authorleo2002-04-09 00:05:52 +0000
committerleo2002-04-09 00:05:52 +0000
commit1f277ccc64ecc55e6ed284a0f21bbdf932c72b65 (patch)
treef52ca29ea16b0d4bd555f7bf0ec12f0f323026d2 /win/Leocad.cpp
parent9c26a3e985e6d449860debe3b466cb18ca25d4d1 (diff)
Fixed the internet update check.
git-svn-id: http://svn.leocad.org/trunk@288 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Leocad.cpp')
-rw-r--r--win/Leocad.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/win/Leocad.cpp b/win/Leocad.cpp
index cd17e82..819a168 100644
--- a/win/Leocad.cpp
+++ b/win/Leocad.cpp
@@ -289,7 +289,7 @@ void CCADApp::OnHelpUpdates()
DWORD dwBytesRead;
CString Contents;
- HINTERNET hHttpFile = InternetOpenUrl(session, "http://www.leocad.org", NULL, 0, 0, 0);
+ HINTERNET hHttpFile = InternetOpenUrl(session, "http://www.leocad.org/updates.txt", NULL, 0, 0, 0);
if (hHttpFile)
{
@@ -313,15 +313,17 @@ void CCADApp::OnHelpUpdates()
if (lib > project->GetPieceLibraryCount())
str += "There's an updated piece library.";
else
- str += "There are no new parts.";
+ str += "There are no new pieces.";
AfxMessageBox(str);
}
else
- AfxMessageBox("Unknown information.");
+ AfxMessageBox("Unknown file information.");
}
InternetCloseHandle(hHttpFile);
}
+ else
+ AfxMessageBox("Could not connect.");
}
else
AfxMessageBox("Could not connect.");