IsMainLoopRunning() and wxHTTP: how to connect at startup to the
internet?
Lorinc
paplorinc at yahoo.com
Thu Sep 6 09:41:23 PDT 2007
Hello,
After a few hours I finally managed to connect wxwidgets to the internet (w=
hy isn't wxHTTP::Connect() listed in the documentation http://www.wxwidgets=
.org/manuals/2.8/wx_wxhttp.html?
How am I supposed to guess that this is the main function I should use ?! .=
..). =
Now how do I call this connect function to fill a wxHtmlWindow for me on st=
artup? (It is working, just not automatically, I had to put it in a mouse c=
lick event).
I would need wxApp::IsMainLoopRunning(); to return true for this to work, =
but I can only make this work by a mouseclick for example, not automaticall=
y since then the main loop is not yet running (it seems).
I have tried OnCreate(wxWindowCreateEvent &event) but no main loop here yet=
(not even after the mainWindow->Show(true);)
Thanks,
L=F5rinc
PS. I am using XP sp2
_____________________________________________________________________=
_______________
Luggage? GPS? Comic books? =
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=3Doni_on_mail&p=3Dgraduation+gifts&cs=3Dbz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070906/ad3=
3bfe4/attachment.htm
More information about the wx-users
mailing list