Andreas Krinke wrote:
(Sat, 24 Oct 2009 05:43:12 -0700)

> lostgallifreyan wrote:
>> Thankyou, that looks comprehensible to me, though I got errors. 
>> (First had to remove the semicolon, then saw 'stream' reported as nil
>>  on line 3).
> 
> Strange, in the message i sent, there was no semicolon.
>

Turns out to be something the Mail Archive (where I look for single answers if 
I don't want to wait fior the digest email) page adds after a double-quoted 
URL. No idea why, but there were two there once I quoted your first example. :)

>> I don't know how much context this needs, but it does look like it 
>> needs something else to make it work.
> 
> It does not need anything else. Just save it to a file and execute it
> with wxlua on the command line. At least on Linux (wxLua 2.8.10.0) it
> will print the source of the webpage.
> 
> Here is an example using a GUI for output:
> 
> local frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxURL Demo",
>                          wx.wxDefaultPosition, wx.wxSize(450, 450),
>                          wx.wxDEFAULT_FRAME_STYLE)
> 
> local textCtrl = wx.wxTextCtrl(frame, wx.wxID_ANY, "",
>                                wx.wxDefaultPosition,
>                                wx.wxDefaultSize,
>                                wx.wxTE_MULTILINE)
> 
> local url = wx.wxURL("http://www.google.com";;)
> local stream = url:GetInputStream()
> while stream:CanRead() do
>   textCtrl:AppendText(stream:Read(78))
> end
> 
> frame:Show(true)

I'm using Windows 98. It can be made to do plenty, but obviously NOT this. If 
even working code fails, then please forget I asked, I won't do it again. I'll 
stay with net tools that work and call them by wxExecute, either synchronously, 
or asynchronously, and as I have a RAM drive set up I can access files directly 
in RAM with very little speed loss. With that method I get things done, With 
anything else, all bets are null and void. Apparently the wxSocketry, and all 
examples, are works in progress, officially, and it's a dead cert they won't be 
written with W98 in mind even if they reach completion. I won't change the OS, 
it does too many good things to throw it out for the few it can't do especially 
as most of those are hardware limited anyway.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to