Class Downloader
Function Download(Adress, File, Overwrite = TRUE, Port = 80)
If !Overwrite And FileExists(File) Then
Return FALSE
End If
Dim http = New wxHTTP()
Dim uri = New wxURI(Adress)
http.SetTimeout(10)
While !http.Connect(uri.GetServer(), Port)
wxSleep(1)
Wend
Dim stream = http.GetInputStream(uri.GetPath())
If (http.GetError() = wxPROTO_NOERR) Then
Dim FileHandle = FOpen(File, "w")
While !stream.Eof()
Dim chunk = stream.Read(1024)
FPuts(FileHandle, chunk)
Wend
FClose(FileHandle)
Else
Return FALSE
End If
End Function
End Class
Zitat2.8.12.43 (Aug./Nov. 2016)
chmod command added
on macOS w/o starting parameters an open dialog is shown
latest Version of wxEditor (4.1.9) added to windows setups
2.8.12.42 (Apr. 2016)
BUGFIX: wxAutomationObject_variant in 64bit mode
BUGFIX: wxEVT_COMMAND_SPINCTRL_UPDATED
Wrapper: wxGrid: XYToCell, GetRowLabelAlignment, GetColLabelAlignment, GetDefaultCellAlignment, GetCellAlignment, GetCellSize
Dump to wxTextOutputStream in wxRichTextObject, wxRichTextCompositeObject, wxRichTextPlainText, wxRichTextBuffer
Wrapper: wxDatePickerCtrlBase_GetRange
wxPageSetupDialogData ctors added
2.8.12.40 (Aug. 2015)
use Visual Studio 2013 Express Edition with Platformtoolset v120 (instead of 7.1)
BUGFIX: in wxReportWriter for Unicode and wx3.0
start compatibility with wx3.0
version numbers moved from shared.h to shared.c (compile time issue)
added: wxGraphicsContext, wxGLCanvas (OpenGL)
modified: wxSound
BUGFIX: CDbEngine::Field() float column with . instead of any other char and ignoring precision
2.8.12.39 (Nov. 2014)
wxDatabaseLayer enhanced (database cursors functionality, dbms infos and some utf-8 conversion problems fixed)
wxDb replaced by wxDatabaseLayer (just supporting ODBC, Sqlite)
compatibility and enhance layers (wxDbEngine/wxDbRecordset) updated
2.8.12.38 (Jul. 2014)
BUGFIX: free up memory w/o deallocate or with direct call to destructor via ~obj
wxBase + wxNet + wxXml revised
wxbc - added a "Console Version of wxBasic" just with wxBase + wxNet + wxXml parts of wxWidgets
Added: wxSimpleHtmlListBox
Added: wxHtmlCellEvent
Enhanced: wxBitmap, wxMask, wxRegion; be careful with wxRegion::Subtract, para has changed!
samples has line-feed as line ending, some fixes for linux and OS X