+ 10

images in my cpp programs

I want to add images in my c plus plus program. Please tell me if it is possible,if it is then how??

6th Feb 2019, 6:07 AM
InfinityAJ
InfinityAJ - avatar
5 Respuestas
+ 5
C++ language dont "understand" the concept of image, neither the concept of gui. This is for keep the language more SO indipendent possible. Then we cannot use gui in c++ codes? Sure, we can do it using SO Api then make access to graphics on our system. And if we want make a multiplatform-code with gui? We can always use one of multiplatform gui frameworks/libs like Qt, WxWidgets, Tk, Fox etc. If you want full access to graphic system you can always use OpenGL, Direct3d (windows), SDL etc.. Like you can see there are many options. Which you have to choice depends on several factors which what you want develop (a game? An gui app?), code portability (for which systems you have to compile the code?), degree of control (using sdl is good but using opengl, thought more complex and only devoted to graphics, give you more control )...
6th Feb 2019, 8:51 AM
KrOW
KrOW - avatar
+ 6
Thanks man you helped me a lot
6th Feb 2019, 8:53 AM
InfinityAJ
InfinityAJ - avatar
+ 5
You are welcome 👍👍👍
6th Feb 2019, 8:54 AM
KrOW
KrOW - avatar
+ 5
Anant Jain I forget to say than if you want make a gui app, try to see wxWidgets 😉
6th Feb 2019, 9:00 AM
KrOW
KrOW - avatar
+ 4
Ok thanks
6th Feb 2019, 9:05 AM
InfinityAJ
InfinityAJ - avatar