Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HOW to make GUI in C++

HOW to make GUI in C++

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++javavisual-studiotutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OmarSH
    wrote on last edited by
    #1

    hello every body: i made some java courses last years , i found that i can make a GUI by includeing some library , like import " javax.swing " anyway this is just in java, i want to ask is there anything like that in C++ , as java is close to C++, if there is i want to tell me how to do something like that i visual studio ,and if you know some resource i will be happy if you share it , thanks

    D _ 2 Replies Last reply
    0
    • O OmarSH

      hello every body: i made some java courses last years , i found that i can make a GUI by includeing some library , like import " javax.swing " anyway this is just in java, i want to ask is there anything like that in C++ , as java is close to C++, if there is i want to tell me how to do something like that i visual studio ,and if you know some resource i will be happy if you share it , thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      OmarSH wrote:

      ...as java is close to C++...

      They are similar in syntax only, nothing else.

      OmarSH wrote:

      if there is i want to tell me how to do something like that i visual studio

      If you have VS installed, just click the Create button. In the "New Project" dialog, select something under Visual C++ like MFC or Win32.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

      1 Reply Last reply
      0
      • O OmarSH

        hello every body: i made some java courses last years , i found that i can make a GUI by includeing some library , like import " javax.swing " anyway this is just in java, i want to ask is there anything like that in C++ , as java is close to C++, if there is i want to tell me how to do something like that i visual studio ,and if you know some resource i will be happy if you share it , thanks

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Pure C++ does not support creating GUIs. C++ is meant for creating optimized, reusable libraries. However, you can use some frameworks or libraries that are based on C++ like MFC as David mentioned. This would, however, be OS dependent. Some libraries like QT[^] provide source code compatibility between OSs where you write code once and build the same code on different environments.

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++) (October 2009 - September 2013)

        Polymorphism in C

        L 1 Reply Last reply
        0
        • _ _Superman_

          Pure C++ does not support creating GUIs. C++ is meant for creating optimized, reusable libraries. However, you can use some frameworks or libraries that are based on C++ like MFC as David mentioned. This would, however, be OS dependent. Some libraries like QT[^] provide source code compatibility between OSs where you write code once and build the same code on different environments.

          «_Superman_»  _I love work. It gives me something to do between weekends.

          _Microsoft MVP (Visual C++) (October 2009 - September 2013)

          Polymorphism in C

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          «_Superman_» wrote:

          Pure C++ does not support creating GUIs.
          C++ is meant for creating optimized, reusable libraries.

          Really? I wonder how I've neen doing it all these years then?

          Use the best guess

          T 1 Reply Last reply
          0
          • L Lost User

            «_Superman_» wrote:

            Pure C++ does not support creating GUIs.
            C++ is meant for creating optimized, reusable libraries.

            Really? I wonder how I've neen doing it all these years then?

            Use the best guess

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Richard MacCutchan wrote:

            Really? I wonder how I've neen doing it all these years then?

            might be late!!... you might be writing executable in disguise of library :-)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups