Thread: c++ Gui Develop,how? and what do i need?

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Question c++ Gui Develop,how? and what do i need?

    Hey Guys,

    Basically i come from java's environment in which is pretty easy to build a gui application. But now i arrived at c++, search a little and found the freaking windows api everywhere, is there another way to build without touching that thing (i know is awesome, but neh)

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    So how much C++ do you know already?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    12
    Well how can i define how much i know.... all i can say i know from basic till pointers, don't know a lot of algorithms but i feel i get the language.... so trow it my face!

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Qt - A cross-platform application and UI framework, well-designed, well-documented, easy-to-use.
    iMalc: Your compiler doesn't accept misspellings and bad syntax, so why should we?
    justin777: I have no idea what you are talking about sorry, I use a laptop and there is no ascii eject or something

  5. #5
    Registered User
    Join Date
    Aug 2008
    Location
    Belgrade, Serbia
    Posts
    163
    C++ doesn't have a standard GUI library like Java does. C++ doesn't care about GUI. I recommend that you learn more of the language itself before delving into graphical stuff. Alas, if you want to jump right in, you could use some of the well-developed cross-platform libraries or use the native's OS methods, like WinAPI, to draw widgets. Some of the more known GUI libraries, but not limited only to C++ or GUI are GTK+, Qt, wxWidgets, FLTK. Take your choice.
    Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
    What profit hath a man of all his labour which he taketh under the sun?
    All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
    For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by hauzer View Post
    GTK+, Qt, wxWidgets, FLTK. Take your choice.
    for C++ I would stay away from GTK+, because it is a C library. there is a C++ wrapper out there for it, called GTKMM, but if you're developing on windows, I have observed a lot of problems with it. I've used wxWidgets pretty extensively, and it has served me well, but I've recently noticed that Qt is LGPL, and I've started looking into it more. from what I can see so far, it is the most C++ oriented toolkit out there. most of the others use macro hacks to handle events, whereas Qt uses their own preprocessor to rewrite parts of the code to handle events.

  7. #7
    Registered User
    Join Date
    Aug 2003
    Posts
    127
    There is an alternate candidate :-) Nana C++ Library, a GUI framework, it's written in Standard C++ and a pure C++ style. There is a picture about a program that powered by the Nana library.
    c++ Gui Develop,how? and what do i need?-litecore_with_nana-png
    one piece of code compiled under Windows and Linux.
    Nana C++ Library is a GUI framework that designed to be C++ style, cross-platform and easy-to-use.

  8. #8
    Registered User
    Join Date
    Oct 2011
    Posts
    12
    Great! Thank you all guys!

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by jinhao View Post
    There is an alternate candidate :-) Nana C++ Library, a GUI framework, it's written in Standard C++ and a pure C++ style. There is a picture about a program that powered by the Nana library.
    c++ Gui Develop,how? and what do i need?-litecore_with_nana-png
    one piece of code compiled under Windows and Linux.
    is nana one of your projects? I see that your name is on the "programming with nana" document

  10. #10
    Registered User
    Join Date
    Aug 2003
    Posts
    127
    Quote Originally Posted by Elkvis View Post
    is nana one of your projects? I see that your name is on the "programming with nana" document
    yes, but this nana is not GNU nana, I am so appreciated that you read the document, would you please give me some feedbacks? :-)
    Nana C++ Library is a GUI framework that designed to be C++ style, cross-platform and easy-to-use.

  11. #11
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I thought the examples were very clear, and I believe that any person with a solid understanding of C++ should find it quite useful.

  12. #12
    Registered User
    Join Date
    Aug 2003
    Posts
    127
    Thank you very much
    Nana C++ Library is a GUI framework that designed to be C++ style, cross-platform and easy-to-use.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to develop so many different solutions?
    By c_lady in forum C Programming
    Replies: 6
    Last Post: 03-25-2010, 12:46 PM
  2. learn to develop C on linux
    By runeveryday in forum C Programming
    Replies: 8
    Last Post: 03-22-2010, 09:15 PM
  3. how to develop look-up table
    By sme7000 in forum C++ Programming
    Replies: 2
    Last Post: 10-08-2009, 04:19 AM
  4. How to develop embedded C skills?.
    By kalamram in forum C Programming
    Replies: 3
    Last Post: 06-07-2006, 08:03 AM
  5. I'm Requested to develop a C program
    By BadProgrammer in forum C Programming
    Replies: 16
    Last Post: 05-18-2003, 12:10 AM