A program to open photos randomly

Hi,

I wish to a write a C++ program that would do the following: 1) display an image from a folder randomly 2) display the image for 10 seconds and then close it , and 3) go to step 1. Keep doing this until the user presses any key.

How should I go about this?

Ultimately I wish to convert this program into a screensaver, but that is for later.


Thanks.
Last edited on
That is a great big open ended question right there.

Displaying anything is going to require some GUI code, which can be quite OS specific, so which OS are you targeting?

What file input types do you want to support?

Have you tried anything yet or do you just want some guidance before you start?

Give us some details and we can point you in the right direction, but what you're asking for is quite complex and you might not get a lot of help, I wouldn't expect any complete code either.
This would not be too bad to do in SDL if you wanted to try that
Sorry for the vague question.

I have two machines. One is on Windows XP and the other is on Windows 8.
I want to be able to open jpg files.

I have not tried anything. I know basic C/C++programming, but I am not sure which header files or functions I would need in this case.


Last edited on
closed account (Dy7SLyTq)
Ultimately I wish to convert this program into a screensaver, but that is for later.
those are two very different things. screensavers are os specific but what you want to do is not

That is a great big open ended question right there.

not really... pretty straight forward

which can be quite OS specific, so which OS are you targeting?

the only major gui api is the winapi. all others are cross platform so it doesnt matter what os it is

but what you're asking for is quite complex and you might not get a lot of help
not really all that complex... maybe 200 lines at the most.]

you just need sdl. wont be that difficult to do. lazy foo actually teaches something similar to this
Topic archived. No new replies allowed.