Solved

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

Posted on 1997-05-20
5
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Technology Partners: 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

733 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