I added in my wxApp::OnInit the function
Code: Select all
wxInitAllImageHandlers();
My linked libraries are the following :
wxmsw26_html, wxmsw26_core, wxbase26, wxbase26_net, wxexpat, wxtiff, wxjpeg, wxpng, wxzlib
Take a look at the code ( I removed error's tests ) :
Code: Select all
wxHtmlWindow *htmlban = new wxHtmlWindow(MainPanel, -1, wxDefaultPosition, wxDefaultSize, 0, "htmlpage");
mainflexbar->Add( htmlban, 0, /*wxGROW|*/wxALIGN_CENTER_VERTICAL|wxALL, 5 );
wxURL url("http://www.google.com");
wxInputStream *data = url.GetInputStream();
wxFile fTest(".tmp.htm", wxFile::write );
wxFileOutputStream streamout( fTest );
data->Read(streamout);
fTest.Close();
htmlban->LoadPage(".tmp.html");
How can I handle that ?[/code]