From 1f277ccc64ecc55e6ed284a0f21bbdf932c72b65 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 9 Apr 2002 00:05:52 +0000 Subject: Fixed the internet update check. git-svn-id: http://svn.leocad.org/trunk@288 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Leocad.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'win/Leocad.cpp') 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."); -- cgit v1.2.3