Joel Elias
Joel Elias

Reputation: 5

Can we use wxWidget to save a webpage onto the disk

I was using wget with system call (c++) to save a webpage from internet to my HD in a program. Now I want to use wxWidget to do the same. Is there anyway I can do that and still have the generic behaviour of wget? (i.e. i give a link to a pdf file n then a pdf file is saved)

I found this link http://wiki.wxwidgets.org/Download_a_file_from_internet

but I have no idea how to convert wxString to a pdf/mp3 file according to the url entered.

Could anyone help please. I am working on an open source project for the first time and I encountered this wxWidget just now

Upvotes: 0

Views: 214

Answers (2)

ravenspoint
ravenspoint

Reputation: 20586

If you are happy using wget with a system call, then why not continue to do so?

wxWidgets is a GUI framework, with a lot of extra convenience functions included. You don't HAVE to use them. You can still use whatever C++ features, utilities and packages that your are familiar with.

Here is a link to Wget for Windows

Upvotes: 1

T-Rex
T-Rex

Reputation: 860

You can use wxHTTP (as described here) or use wxURL and GetInputStream()

Upvotes: 0

Related Questions