Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan't intall latest SDK for V6.0 Pin
Member 11885607-Apr-09 10:58
Member 11885607-Apr-09 10:58 
QuestionCView Window ? Pin
sabdalla807-Apr-09 9:49
sabdalla807-Apr-09 9:49 
QuestionRe: CView Window ? Pin
CPallini7-Apr-09 9:56
mveCPallini7-Apr-09 9:56 
AnswerRe: CView Window ? Pin
sabdalla807-Apr-09 10:34
sabdalla807-Apr-09 10:34 
QuestionHighlighting HTML text Pin
rp_suman7-Apr-09 7:32
rp_suman7-Apr-09 7:32 
AnswerRe: Highlighting HTML text Pin
«_Superman_»7-Apr-09 18:11
professional«_Superman_»7-Apr-09 18:11 
QuestionMembers Named using Template Parameters Pin
Skippums7-Apr-09 5:59
Skippums7-Apr-09 5:59 
AnswerRe: Members Named using Template Parameters Pin
Roger Stoltz7-Apr-09 6:27
Roger Stoltz7-Apr-09 6:27 
Skippums wrote:
Is there a way to create a class that can be instantiated with different method names?


In some way I interpret this as you have a desire to use types as variables, which suggests that you should probably re-evaluate you design.

Even if you were able to do what you want, I don't see the benefit other than adding to the confusion.


Skippums wrote:
The purpose behind attempting to do this is because I have two classes, both with three members of type double that have different names, and all other code is identical.


This sound like a very good opportunity to use inheritance and polymorphism.
Perhaps you disagree depending on how you're using the data, but then you may need a container instead and could probably use the std::vector template (or a similar container) combined with std::for_each from the STL library.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Members Named using Template Parameters Pin
Skippums7-Apr-09 7:19
Skippums7-Apr-09 7:19 
AnswerRe: Members Named using Template Parameters Pin
Stuart Dootson7-Apr-09 8:04
professionalStuart Dootson7-Apr-09 8:04 
QuestionMultiple Directories selection Pin
ranjith_adapu7-Apr-09 5:38
ranjith_adapu7-Apr-09 5:38 
QuestionRe: Multiple Directories selection Pin
Michael Schubert7-Apr-09 6:12
Michael Schubert7-Apr-09 6:12 
AnswerRe: Multiple Directories selection Pin
ranjith_adapu7-Apr-09 19:45
ranjith_adapu7-Apr-09 19:45 
QuestionRe: Multiple Directories selection Pin
David Crow7-Apr-09 6:18
David Crow7-Apr-09 6:18 
AnswerRe: Multiple Directories selection Pin
«_Superman_»7-Apr-09 18:17
professional«_Superman_»7-Apr-09 18:17 
QuestionFSM data structure design Pin
syuga7-Apr-09 5:06
syuga7-Apr-09 5:06 
AnswerRe: FSM data structure design Pin
David Crow7-Apr-09 5:11
David Crow7-Apr-09 5:11 
AnswerRe: FSM data structure design Pin
Stuart Dootson7-Apr-09 8:05
professionalStuart Dootson7-Apr-09 8:05 
AnswerRe: FSM data structure design Pin
bulg7-Apr-09 9:36
bulg7-Apr-09 9:36 
AnswerRe: FSM data structure design Pin
Alan Balkany8-Apr-09 3:51
Alan Balkany8-Apr-09 3:51 
QuestionChanging values in dialog boxes Pin
AnithaSubramani7-Apr-09 4:53
AnithaSubramani7-Apr-09 4:53 
AnswerRe: Changing values in dialog boxes Pin
Roger Stoltz7-Apr-09 5:05
Roger Stoltz7-Apr-09 5:05 
QuestionRe: Changing values in dialog boxes Pin
David Crow7-Apr-09 5:12
David Crow7-Apr-09 5:12 
AnswerRe: Changing values in dialog boxes Pin
AnithaSubramani7-Apr-09 18:52
AnithaSubramani7-Apr-09 18:52 
QuestionRe: Changing values in dialog boxes Pin
David Crow8-Apr-09 3:11
David Crow8-Apr-09 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.