GUI in C++

Jun 25, 2011 at 3:56pm
Hi, I have created many console based programs in C++. But, I have not created any GUI or windows application. I am willing to learn it. It would be really helpful if anyone suggest any book or post their source code so i can look at it.

Thank You
Jun 25, 2011 at 4:07pm
closed account (zb0S216C)
I personally would recommend using C#, which was developed by Microsoft. The C language committee approved C#, so now it's widely used for creating user interface programs. C# is easy to use, unlike CLR.

I would not recommend using CLR as your program can get messy really quickly.

Wazak
Last edited on Jun 25, 2011 at 4:07pm
Jun 25, 2011 at 4:44pm
Or use a cross platform library such as Qt, which supports creation of GUI applications.
http://qt.nokia.com/products/
I haven't used it much, so I don't know how much educational material is available.
Last edited on Jun 25, 2011 at 4:45pm
Jun 27, 2011 at 5:53pm
how about simple Windows Form Applications ? ( I am using Visual Studio 2010 )
Jun 27, 2011 at 5:57pm
If you have Visual Studio Professional, you could look into the Microsoft Framework Classes (MFC).

Otherwise, use either a cross platform library as I mentioned before, which will yield windows forms applications on Windows, or use the WinAPI directly.
Jun 27, 2011 at 8:00pm
closed account (z05DSL3A)
Framework,

CLR is Common Language Runtime, Microsofts implementation of Common Language Infrastructure (CLI). The code generated from C# is CIL (Common Intermediate Language) and runs in the CLR.

I believe you are thinking of C++/CLI.
Jun 27, 2011 at 8:04pm
Don't you just love TLAs?
Jun 27, 2011 at 8:31pm
http://www.winprog.org/tutorial/ check this out if u want to learn WinApi i found it very helpful and you can also download a pdf (ebook) file from there and examples of the source code that the book is covering. I hope it helps. :)|
Jun 30, 2011 at 9:40pm
ok..thank you..
Jun 30, 2011 at 10:33pm
You could try out graphical libraries like:
SDL for 2D graphics, sound, user input. http://www.libsdl.org/
OpenGL for serious 3D graphics. http://nehe.gamedev.net/lesson.asp?index=01
Which use C++, which one would expect over C# in a forum named CPLUSPLUS.COM

Or you could stick with the console and add graphics with the curses library, if you're willing to be "retro".
pdcurses for Windows or ncurses for Linux.
http://pdcurses.sourceforge.net/
http://www.gnu.org/software/ncurses/

Jun 30, 2011 at 10:53pm
this question must be asked here more then 1000 times.. is google such a bad search engine.
Topic archived. No new replies allowed.