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 :)