picter

May 21, 2011 at 8:20pm
I need to know how to use a picter.
Like one of its resaources. And display it without a window.

Do you have eny ideas?
May 21, 2011 at 8:23pm
Lots.

C++ has no inherent concept of pictures, so this is very much dependent on your operating system. What is it?
May 21, 2011 at 8:31pm
Windows XP
May 21, 2011 at 8:32pm
And when you say "display it without a window" what exactly do you mean, given that if you're using Windows XP everything has a window.
May 21, 2011 at 8:33pm
like just a picter in the display.
May 21, 2011 at 8:35pm
So you just want to display a picture with no border, etc?

Just today I made a "splash screen" class using SFML (http://sfml-dev.org )

With SFML 2.0, you can easily create a borderless window and draw an image to it.
May 21, 2011 at 8:38pm
Do you need that program with every computer that you use it on?
May 21, 2011 at 8:43pm
You will need some SFML code on every computer you use it on. You can include this code with your actual programme so that there will be no problems.

You can show images using just the Windows API. It is much, much harder to do it that way.

May 21, 2011 at 8:52pm
how do you do it with windows API?
May 21, 2011 at 9:11pm
Are you going to leve me hangeing?
May 21, 2011 at 9:14pm
I've no idea. I don't use windows, and if I did, I wouldn't do something like this using the windows API. That would take ages and require lots and lots of effort, and my code simply wouldn't be nearly as good as any of the freely available libraries such as the one linked to above.
May 21, 2011 at 9:17pm
Then what os do you use?
May 21, 2011 at 10:39pm
Are you going to leve me hangeing?
May 21, 2011 at 10:51pm
Right now I'm using Ubuntu Linux. At work I usually use SUSE Linux. Sometimes I use freeBSD.
May 22, 2011 at 7:05am
And whichever OS you use, the SFML code will work without any changes, apart from a recompile :D
Topic archived. No new replies allowed.