Results 1 to 9 of 9

Thread: Newbie questions

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    Newbie questions

    I am a big time newb at C++. Just taking my first class in it. So far we have covered the basics of DOS style apps. So far we've made a couple simple apps like a program that draws an empty box out of asterics and finding the greatest common divisor of 2 numbers, etc..

    I am wanting to push ahead and learn a bit about amking a basic windows app. Something very simple with a form and a button and a text box and a listbox where I can just add items to a list box, or something along those lines.

    Firstly, I know there is a dialog box thing in VS C++ that allows you to make a simple window, but I have no clue how to use it.

    Secondly are there ocx or controls that can be added to a form that have built in events, such as onclick etc...?

    Basically, I just want to get a taste of making a windows app isntead of these lame DOS style apps. Any good tutes out there on the net?
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  2. #2
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    If your going to want to make Windows Apps with C++ , RUN away now. You should stay with console apps for awhile to learn the syntax and basics of the language.


    MFC windows apps under the vc++ IDE is crap. It is far different from VB. you have to add a form as a resource if you plan on making one. Then you will draw on your controls just as with VB and other languages. The difference is when your wanting to write code for the button events and so on. You can't just double click the button and put in your Messagebox.show("hello world")

    gotta set properties and everything , and setup an OnClick method.

    i'd suggest www.programmingtutorials.com C++ section has some good documentation aswell as WROX tutorial on c++. It is very nice.

    hope my words of nonsense was some help.
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  3. #3
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    Also just to add some more of my opinion into this thread

    I was taking a CS course in C++ at the beginning of this year, BUT i had my course schedule changed to switch into the information systems course which touches base on vb, c++ , and java so i wouldn't be stuck making console apps to solve math problems all semester. If you want to learn the "C" style of programming and syntax but want the gui design / IDE of VB then go with C# .NET
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  4. #4

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Well the "C" style of programming isn't object oriented, so C#.net is nothing like C, but I think I get what you mean. However, I am not interested in learning C# at the moment. I want to get the C++ thing down. I am no stranger to API or OOP with classes etc.. so I think I can handle doing a windows app in C++, I just need something to point me in the right direction.

    I will check out the tutorials you suggested, thanks
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  5. #5
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    actually in MFC you can just add a button, double click it and put MessageBox("Hello World");

    a good thing with using c++ is the built in api and some other things

    but there are definitely things that are easily done in vb that get.... messy.... in c++

  6. #6
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    A very good and straightforward source for Windows tutorials is www.winprog.org

    http://www.winprog.org/tutorial/

  7. #7
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    Originally posted by dis1411
    actually in MFC you can just add a button, double click it and put MessageBox("Hello World");

    a good thing with using c++ is the built in api and some other things

    but there are definitely things that are easily done in vb that get.... messy.... in c++


    ok, went and tried BUT things are still done MUCH easier in VB. sure when you get into more advanced things and are efficient in c++ it would pay off to use it instead, but your not gonna get to that point in a few months like you could with VB.

    I don't mean to say anything negative about c++ , more so to Vc++. I do still use C++ to create any console apps that i need. math stuff and so forth.


    I'd recommend getting SAMS Visual C++ 6 book because it is all about developing WIN Apps instead of console apps. So it jumps right into that development aspect.
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  8. #8

  9. #9
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    703
    Originally posted by ice_531
    I'd recommend getting SAMS Visual C++ 6 book because it is all about developing WIN Apps instead of console apps. So it jumps right into that development aspect.
    You'll probably miss out on a lot of important language features if you're worrying about gui programming - it's understanding the language that's important, knowing a specific API is easy after that.
    an ending

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width