¿Cómo implementar interfaz gráfica con C++? | Sololearn: Learn to code for FREE!

+2

¿Cómo implementar interfaz gráfica con C++?

Saludos Coders πŸ€˜πŸ˜ŽπŸ‘©β€πŸ’» Tengo curiosidad por aprender más sobre C++ agregando interfaz gráfica. Hay una librería llamada windows.h pero no la sé utilizar, sobre de los handlers o varios otros comandos. Entonces quiero aprender a usar esa librería, entender para que sirve y utilizarla para implementar ventanas, botones, mensajes box, etc. Por cierto sé que existen IDEs como Qt que permite usar el diseño para las interfaces pero lo que quiero es aprender es con código de las librerías, yo utilizo DevC++ 6. Así que, quién puede recomendarme un PDF que explique a detalle eso, o alguien que medio me explique. Gracias...

9/22/2021 4:35:13 PM

Anthony Carrillo

12 Answers

New Answer

+1

Add relevent tag and write your question in english language so community can help you better because here mostly peoples know english . By the way you asking for graphics and windows.h header file but in c / cpp there is no such standard headerfile available for graphics . In old Compiler like turbo it had graphics.h library but this is not standard and it will support in old dos based compilers it was popular in olden days before 30years ago but in today era noone using this library for development purpose. You have mentioned for windows.h header so this is also not standard. But this Library provides to add media like song .... sound.... but your written code will work on windows only not in Linux or other flavour πŸ˜† (environment) so avoid your code to use this . If you really wanna use graphics then try SDL , SFML And OpenGL for gaming and graphic. You need to download these files from external sources then you need to configure on your ide you can use codeblock or Visual studio code .

+3

Anthony Carrillo No actually dev c++ don't have autocorrect features and suggestions you can use codeblock its better

+2

Comprendo πŸ˜…πŸ‘ Gracias en verdad, me pondré a investigar sobre SDL, SFML y OpenGL a ver cómo se usa. Y sí, no soy muy bueno con el inglés gracias por el consejo. Mi PC es 4 de RAM y 465 GB de espacio, veré si descargo Qt.πŸ€”

+2

No i will suggest you dont try qt with 4gb ram it won't work properly even visual studio code will also lag with 4gb ram and i have already told you that for qt required space is 500gb and your total space is 465gb

+1

If you dont know how to configure it you can take reference from Google YouTube you will get complete guide with step by step . here you need to do many configurations. You are also asking for Qt so qt is best software to develop GUI desktop application in cpp . It is heaviest software if your system specifications are good then you can try this before this you should know about the basic of cpp language for Qt required space is atleast 500gb and ram should be atleast 8gb (not necessarily )ram for good development experience it takes little bit time . ............ Thankyou ..........

+1

🀯Increíble, mejor no lo descargo XD aprenderé a usar las librerías que me dijiste, total si no logro algo, me quedaré con el lenguaje de C# que ya sus IDE tiene modo diseño.

+1

@A.S. You are joking aren't you? Avoid using the Windows SDK because it's non standard? If you're going to write windows software it is the de facto standard. Some Windows C++ developers prefer to use the Microsoft Foundation Class (MFC) library rather than the Windows API. SDL,SFML, OpenGL, and Qt are not standard libraries either. The C/C++ standard makes no assumptions about the graphics capabilities of the system. By definition the use of a GUI toolkit is going to require system dependant code. See: https://en.wikipedia.org/wiki/List_of_widget_toolkits

+1

Anthony Carrillo, check your compiler's include folders. Many versions of the gnu compiler precompiled for Windows systems already include the Windows headers and libraries. For a guide to building gui programs with the win32 api see... http://winprog.org/tutorial/es/

0

Comprendo, muchas gracias por tu respuesta. Ahora sé que ya nadie usa windows.h Usaré otras librerías. Gracias por las páginas. πŸ˜ŽπŸ‘πŸ€˜πŸ˜Ž

0

De casualidad, solo por curiosidad... El DevC++ tiene para habilitar autocompletado de sintaxis.

0

Se me olvidó poner este signo ' ? ' XD

0

A.S. Entonces me combiene más codeblock. Gracias...