add window for progress bar

I'm a beginner trying to add a few small features to a project that was given to me.

I added libcurl to download a file before the program launches.

I want to also add a progress bar. This link displays a progress bar to console https://curl.haxx.se/libcurl/c/progressfunc.html

This one does so with gtk
https://curl.haxx.se/libcurl/c/smooth-gtk-thread.html

I prefer a gui progress bar but would like to not add gtk. Console will do.

My program has SDL2 and OpenGL.

While the file is downloading there currently is no window. The simplest way would be to open a console window for the download or to open my gui before downloading the file but I don't know how to do either.

How would I open a console window just for the libcurl progress bar? Or is there another solution?

Thank you.
Your program sounds like a game (or something similar)
Which means most of the time it doesn't use system provided controls.

You'll have to implement your own:
- estimate the progress
- draw it

Topic archived. No new replies allowed.