|
-
Jul 1st, 2001, 02:31 PM
#1
Thread Starter
Hyperactive Member
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²™¤»
-
Jul 1st, 2001, 02:39 PM
#2
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).
-
Jul 1st, 2001, 02:41 PM
#3
Monday Morning Lunatic
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
-
Jul 1st, 2001, 02:55 PM
#4
Thread Starter
Hyperactive Member
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²™¤»
-
Jul 1st, 2001, 03:03 PM
#5
Frenzied Member
Code:
#include <stdlib.h>
...
system("pause");
-
Jul 1st, 2001, 03:07 PM
#6
Monday Morning Lunatic
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
-
Jul 1st, 2001, 03:13 PM
#7
Thread Starter
Hyperactive Member
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²™¤»
-
Jul 1st, 2001, 03:18 PM
#8
Monday Morning Lunatic
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
-
Jul 2nd, 2001, 06:50 PM
#9
Thread Starter
Hyperactive Member
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²™¤»
-
Jul 2nd, 2001, 06:53 PM
#10
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|