I have again a problem
I want to get a file from the internet:
Code: Select all
wxHTTP *http = new wxHTTP;
wxInputStream *in = http->GetInputStream(wxT("http://www.example.com"));
if (http->GetError()!=wxPROTO_NOERR)
{
wxMessageBox(wxT("Error!"), wxT(""), wxOK);
wxMessageBox(wxString::Format(wxT("%d"), (int)http->GetError()), wxT(""), wxOK);
}
wxString OutputData;
if (in && in->IsOk())
{
wxStringOutputStream OutputStream(&OutputData);
in->Read(OutputStream);
wxMessageBox(OutputData, wxT(""), wxOK);
}
I get always the error wxPROTO_CONNERR (error code 3).
My firewall had already been deactivated and I had run the program as administrator but there is the same problem!
I hope someone can help me.
Thanks!!
Regards
ComFreek
PS: I have built wxWidgets as a DLL and a monolithic library.