Author Topic: C++ programs and cmd?  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
C++ programs and cmd?
« on: June 26, 2013, 05:11:35 am »
Okay so far I have been making these small little programs in C++ and they have all been executed and are in the cmd.


How do I make these projects into having a UI? (Not in the cmd anymore)


Maybe I'm just being pre mature because I haven't gotten too far into the language yet but I'm curious!
"To find happiness is to not always laugh."

Offline Fur

  • Knight
  • **
  • Posts: 216
  • Cookies: 34
    • View Profile
Re: C++ programs and cmd?
« Reply #1 on: June 26, 2013, 05:23:09 am »
You'll need a GUI library.
There are loads, search for "Windows GUI libraries".

There are a bunch of guides to creating GUIs with the Win32 API, here is one of them.
« Last Edit: June 26, 2013, 04:37:23 pm by Fur »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: C++ programs and cmd?
« Reply #2 on: June 26, 2013, 06:21:17 am »
GUI's with Win32 API's is probably the most native, but also the ugliest :D
If you want it very easy, try Borland (now Embarcadero) IDE's. They their own VCL and a GUI builder.
Then you could try Qt - originally developed by Nokia but now it is very popular.

As Fur said, there are many, many GUI libs out there.

Offline 6NavI

  • /dev/null
  • *
  • Posts: 17
  • Cookies: -3
    • View Profile
Re: C++ programs and cmd?
« Reply #3 on: June 26, 2013, 08:57:28 am »
i also thought about leaving the console program shit but i thought it had to be like that for amateurs but at least am gettin' some hopes that u can use the GUI.....do i need to tutorials for that too...or ?????@Chef ****EZ******
****6NavI****

Offline dense

  • Serf
  • *
  • Posts: 23
  • Cookies: 4
    • View Profile
Re: C++ programs and cmd?
« Reply #4 on: June 26, 2013, 01:53:47 pm »
i also thought about leaving the console program shit but i thought it had to be like that for amateurs but at least am gettin' some hopes that u can use the GUI.....do i need to tutorials for that too...or ??? ??@Chef ****EZ******
Doesn't mean if a program doesn't have an UI it's bad/written by an amateur. Of course UIs look professional and are better for the non-tech savvy people, I guess.
Well, you don't need tutorials, every library has it's own documentation so you can use that and there's always examples of how to use it.

Anyway, I suggest Qt because it's modern, cross platform and pretty easy to get into. It also has it's own IDE which has built-in UI designer so you don't have to manually do stuff.
« Last Edit: June 26, 2013, 01:54:49 pm by dense »

Offline theifyppl

  • Serf
  • *
  • Posts: 44
  • Cookies: 20
    • View Profile
Re: C++ programs and cmd?
« Reply #5 on: June 26, 2013, 08:40:41 pm »
I would also suggest Qt.  I've used Win32 APIs and manually coded GUI's in the past, but I like Qt much more for some reason.  As dense mentioned, it's modern and cross-platform.  Programming GUIs usually requires object oriented programming, so you'll need to get familiar with that.


I suggest finding a book to learn CPP with Qt.  That's what I did, although I never got to finish the book because of other distractions I had during the school year.


The book I used was Design Patterns in CPP with Qt.  Since I still have the book on my hard drive, I uploaded it to mediafire, if you're interested: http://www.mediafire.com/download/pba58noshtkjj5y/0132826453_Design.Patterns.in._P.with.Qt.2nd.Ed.rar
« Last Edit: June 26, 2013, 08:41:58 pm by theifyppl »

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: C++ programs and cmd?
« Reply #6 on: June 27, 2013, 02:22:07 am »
I would, like suggested, use Qt. However, coming from Python I do enjoy Tk a lot.

Quote
...herp...

The book I used was Design Patterns in CPP with Qt.  Since I still have the book on my hard drive, I uploaded it to mediafire, if you're interested: http://www.mediafire.com/download/pba58noshtkjj5y/0132826453_Design.Patterns.in._P.with.Qt.2nd.Ed.rar

Y u no use evilzones upload service?
« Last Edit: June 27, 2013, 02:23:32 am by techb »
>>>import this
-----------------------------

Offline theifyppl

  • Serf
  • *
  • Posts: 44
  • Cookies: 20
    • View Profile
Re: C++ programs and cmd?
« Reply #7 on: June 27, 2013, 04:08:57 am »
Y u no use evilzones upload service?

My bad, I'm still pretty new here :P
I'll upload it using EZ's upload service as soon as I get back home!


EDIT: Uploaded.  You guys are right, EZ's upload service is intense.  Way faster than mediafire!



« Last Edit: June 27, 2013, 06:48:29 pm by theifyppl »

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: C++ programs and cmd?
« Reply #8 on: June 27, 2013, 05:53:49 pm »
I would also suggest Qt.  I've used Win32 APIs and manually coded GUI's in the past, but I like Qt much more for some reason.  As dense mentioned, it's modern and cross-platform.  Programming GUIs usually requires object oriented programming, so you'll need to get familiar with that.


I suggest finding a book to learn CPP with Qt.  That's what I did, although I never got to finish the book because of other distractions I had during the school year.


The book I used was Design Patterns in CPP with Qt.  Since I still have the book on my hard drive, I uploaded it to mediafire, if you're interested: http://www.mediafire.com/download/pba58noshtkjj5y/0132826453_Design.Patterns.in._P.with.Qt.2nd.Ed.rar

Very nice looking book. I will definitely begin reading this one. What exactly Qt in relation to C++?
"To find happiness is to not always laugh."

Offline theifyppl

  • Serf
  • *
  • Posts: 44
  • Cookies: 20
    • View Profile
Re: C++ programs and cmd?
« Reply #9 on: June 27, 2013, 06:45:05 pm »
Very nice looking book. I will definitely begin reading this one. What exactly Qt in relation to C++?


Qt is a cross-platform application framework written in C++, although it can also be used in several other languages.  For example, PyQt was written to allow developers to use Qt with Python.  More information here: http://en.wikipedia.org/wiki/Qt_(framework)


And you can also google to find their main website.




Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: C++ programs and cmd?
« Reply #10 on: June 27, 2013, 07:23:25 pm »
Additionally, don't think GUI is your only choice. You can also opt for a TUI (text-user interface), akin to old-school BBS, bootloaders, BIOS and games with a library such as ncurses.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline Chef

  • Peasant
  • *
  • Posts: 126
  • Cookies: 3
  • Corrupted Soul
    • View Profile
Re: C++ programs and cmd?
« Reply #11 on: June 27, 2013, 09:04:21 pm »
I am thankful I have all these options. However, It's hard to choose on these things when I'm not quite sure what the difference between some of them are. I think I will just continue expanding my understanding of C++ and once I made a few games on the cmd I will gravitate towards a GUI or TUI.
 
Thanks everyone, I'm trying to not get overwhelmed! Will post my first project soon. :)
"To find happiness is to not always laugh."

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: C++ programs and cmd?
« Reply #12 on: June 27, 2013, 10:12:03 pm »
There is an example program made with a TUI using a Urwid lib, which is basically a wrapper for Curses: http://evilzone.org/evilzone-releases/d0xbase/