opening jpg in a new window

Feb 2, 2011 at 7:05pm
my question is just as the title says. i want to know how to open a jpg in a seperate window automaticly when my code opens. i have looked everywhere but i cant figure out how to do it
Feb 2, 2011 at 7:17pm
Feb 2, 2011 at 9:04pm
i kinda was hoping to do it without sfml because i dont know how to get it to work with dev c++
Feb 3, 2011 at 1:29pm
sdl then?
Feb 3, 2011 at 1:47pm
I think both sdl and sfml and many many others all link to the same jpeg lib. i saw a quick thing how to use. i would just use the jpeg lib directly to avoid unnecessary files

http://www4.informatik.uni-erlangen.de/Services/Doc/graphics/doc/jpeg/libjpeg.html
Feb 3, 2011 at 3:52pm
acorn, OP wants to display the jpeg too. (or did I fail to notice that functionality there?)
cainen, you should try to deal with setting up a library. You'll need it at some point anyway. Though you may want to get a better IDE before you do that (Code Blocks, for example).
Feb 3, 2011 at 11:47pm
im not trying to put a pic in my program. i want it to open an existing picture from the files in my computer in a new window
Feb 3, 2011 at 11:50pm
also i did download microsoft visual c++ 2010 express edition but i was experiencing technical difficulties.
Feb 4, 2011 at 12:19pm
Would calling (from your code) some other program to open the image be ok?
Feb 4, 2011 at 11:08pm
what do u mean
Feb 4, 2011 at 11:17pm
o i understand now but how do you do do that.
Feb 5, 2011 at 8:19am
Feb 5, 2011 at 2:46pm
i still dont really get it. but its ok i think i found another way
Feb 5, 2011 at 2:48pm
At risk of going off-topic, would you consider not using Dev-C++? So many people come through here struggling with it, and there are so many better alternatives. To my mind, even a basic text editor and manual command line compilation and linking is better than Dev-C++.
Feb 7, 2011 at 1:42am
so i have been told..... can you request a better IDE
Topic archived. No new replies allowed.