From: lostgallifreyan <los...@gm...> - 2009-10-24 20:16:06
|
Andreas Krinke wrote: (Sat, 24 Oct 2009 05:43:12 -0700) > local url = wx.wxURL("http://www.google.com";) > local stream = url:GetInputStream() > while stream:CanRead() do > textCtrl:AppendText(stream:Read(78)) > end One other thing.. I added a line to get the error: local url = wx.wxURL("http://www.google.com") local stream = url:GetInputStream() print(url:GetError()) while stream:CanRead() do print(stream:Read(78)) end It printed a 3 which I checked with this: print(wx.wxURL_NOERR,wx.wxURL_SNTXERR,wx.wxURL_NOPROTO,wx.wxURL_NOHOST,wx.wxURL_NOPATH,wx.wxURL_CONNERR,wx.wxURL_PROTOERR) So it can't find the host. As this is a simple thing that a vast number of tools can do on W98 I won't be blaming the OS. Hopefully wxWidgets will become as cross-platform as its billing suggests. W98 is founded on a decades-old and extremely small, fast and useful base (DOS) and plenty of people value that even if Microsoft don't. I hope that people who support cross-platform efforts don't too readily do what Microsoft want them to do, to give up on it. |