Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Visual C++ Class Wizard will not treat radio butons properly.

Posted on 1997-05-20
5
Medium Priority
?
311 Views
Last Modified: 2012-05-04
Title: Visual C++ Class Wizard will not treat radio buttons properly.

Value: 200 points

Visual C++ 4.0, under Windows 95

Create a dialog based project and modify the default language from English(US) to English(UK) (necessary for me).
Include a selection of controls including at least one radio button.
Activate Class Wizard/Member Variables.  The list of Control IDs does NOT include that for the radio button(s).  Why.
(Teach yourself Viaual C++ in 21 days, Gurewich and Gurewich chapter 7, assumes no problems here.)

I have tried Save all files - no good.
I need an expert who has met or can reproduce the problem - and solve it.  Please - no guesses.

Ed Peters
0
Comment
Question by:deterep
5 Comments
 
LVL 4

Expert Comment

by:md041797
ID: 1163576
There was some discussion about this in comp.lang.c++.
0
 
LVL 1

Expert Comment

by:lwiding
ID: 1163577
Radio buttons do not show up in the variable list, even for English (US). I do not know why MS choose to do this, but this was done on purpose.

I believe the reason for this might be that rather than a variable for each radio button, you would want a single variable for a group of radio buttons, which class wizard is not really set up to handle in 4.x.

The work around, at least the one which I have used is the past, is to add the variable my self, and respond to the messages for the radio buttons myself.
0
 

Author Comment

by:deterep
ID: 1163578
As a beginner working through "Teach yourself Visual C++ in 21 days", I need to know how to get round the problem which the book does not even acknowledge.  lwiding's answer does not tell me how to do that.
0
 

Accepted Solution

by:
sunnyltd earned 400 total points
ID: 1163579
Radio Buttons must have group property.
So you should set it, then you can see it's ID in
Wizard/Member window.
0
 

Author Comment

by:deterep
ID: 1163580
Excellent.  Thank you.  The book was clear after all.  It was my mistake.  Anyway, thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question