Looking for help with windows apps

Write your question here.

ok here goes... i did visual basic at school ages ago and ive always had an interest in programing and decided to learn c++ just for fun. Ive managed to find no end of help for console applications and have had a lot of fun playing with them, now i understand my way around the basics. i decided to move onto windows applications. But there doesn't seam to be any clear cut guides out there like there is for console applications.

ive been using dev c++ and then wxdev c++. altho basic compared with visual studios i thought a code based program rather than gui would improve my knowledge more. but i just don't know where to get started. you search for console apps and there is clear cut explanations to what is going off,and your taken from "hello world" programs to some really complex stuff.

ive been trying to create a button in dev c++ but it doesn't want to work and the code ive put in seams to be exactly the same as the example code. Is there any good(well explained) guides out there for windows app programing in c++. i would like to carry on learning but im finding windows apps very frustrating


1
2
3
4
5
  {case WM_CREATE:
        CreateWindow(TEXT("button"), TEXT("HI"),
        WS_VISIBLE | WS_CHILD
        10,10,100,100, HWND, (HMENU) 10, NULL, NULL);
        break;


that is the code im using to try and create a button in c++ and its compiler errors i dont yet understand all the way. ive a very simple program in mind. i want to create 4 or 5 buttons down left hand side of the page. All that create a different windows of buttons.

say Burgers
Pizza
Kababs
Offers
etc etc
hit burgers and a list of 10 burgers comes up each button has a price and a label. then as you press the button it adds it to a text box down the side telling me the label of the button pressed. then under the list of buttons pressed (list of items)a Total price for all items

i hope this makes scene. This is just a learning project. all i want to do is make each button a set price and have an out put at the side, and the ability to make buttons hide and reappear...

for example if you hit pizza all the kabab burger etc buttons need to be hidden n only show the relevant buttons

if any1 could point me in the right direction for learning this sort of thing or right a basic program with // that explains each important line i would be forever great full. i know this should not be to hard to accomplish but for a new programer like me its proving difficult. I was having so much fun programing in console apps im very frustrated at the bric wall ive hit :)
Last edited on
if you want to learn gui programming you can try wxwidgets or qt. they have really good documentation and great support forum.

http://wxwidgets.org/

http://qt.digia.com/
thank you, qt actually looks really good but i cant work out if it is free or not, i don't want to pay for anything yet as i am just learning and the is a 'try it know' option not just download

they are both free.
Thanks for the links. About whether Qt is free, the email I got from the website after I signed up says that Qt evaluation package only has a 30-day evaluation license, and after that you won't be able to use Qt enterprise.

It says to look at the User Licensing Agreement for more information, though that's in the package which I haven't installed yet.
Qt can either be used under LGPL licence for free or its proprietory licence can be purchased and then the LGPL licence restrictions are not applicable.

I have been using an LGPL licenced Qt version and I am quite happy with it as the extensive GUI library and online support make it very easy to learn and develop on Qt.
Last edited on
Topic archived. No new replies allowed.