Results 1 to 10 of 10

Thread: VC++ Buttons Questions

  1. #1

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Arrow VC++ Buttons Questions

    I was doing this tutorials last night about the basics of buttons in VC++. The tutorial is here http://www.codeproject.com/buttonctrl/button_tute.asp

    Anyway, at one point they wanted me to change the button ID in the Recource.h file... and the problem is that I couldn't find where it was saying the button ID in that .h file...

    =====================================

    My other question is this... when I'm writing a console app, how can I stop it from unloading when I'm complete??

    Any help??

    (If you are wondering, I'm a COMPLETE newbie in C++ so explain things to me as if I'm 9 years old )

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  2. #2
    denniswrenn
    Guest
    Are you using a dialog?(VB-Like interface)

    If so, then just double click on the button and change IDC_BUTTONX to the name you want(I recoment keeping the IDC_ prefix).

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Right-click and properties, I think

    That tutorial is for MFC - don't use it. If you're a newbie at C++, learn that first. Don't even think about Windows programming yet. Either way, you shouldn't use MFC until you're extremely competent at normal Windows programming using the API.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    I know... but it looked interesting so I gave it a try...

    For now I'll only try to study console apps.

    Nobody answered my console questions...

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  5. #5
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Code:
    #include <stdlib.h>
    ...
    system("pause");
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Ummm.....ok

    (psst...guys...how much c++ has he had to drink? i think we need to put him to bed now)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Originally posted by parksie
    Ummm.....ok

    (psst...guys...how much c++ has he had to drink? i think we need to put him to bed now)
    Are you talking to me or Vlatko??

    And if you are talking to Vlatko, what is he doing wrong?? is that code wrong then?

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Did you edit your post? I didn't see the console question...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Originally posted by parksie
    Did you edit your post? I didn't see the console question...
    I didn't edit anythign...

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Weird. Oh well, must have been my brain cell overloading again
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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