Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PropertyPage Pin
Code-o-mat13-Mar-09 6:38
Code-o-mat13-Mar-09 6:38 
GeneralRe: PropertyPage Pin
shakumar_2214-Mar-09 2:31
shakumar_2214-Mar-09 2:31 
GeneralRe: PropertyPage Pin
Code-o-mat14-Mar-09 4:01
Code-o-mat14-Mar-09 4:01 
QuestionCreating derived type from a base class template Pin
Skippums13-Mar-09 6:00
Skippums13-Mar-09 6:00 
AnswerRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 6:06
professionalStuart Dootson13-Mar-09 6:06 
GeneralRe: Creating derived type from a base class template Pin
Skippums13-Mar-09 6:15
Skippums13-Mar-09 6:15 
GeneralRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 6:40
professionalStuart Dootson13-Mar-09 6:40 
GeneralRe: Creating derived type from a base class template Pin
Skippums13-Mar-09 8:12
Skippums13-Mar-09 8:12 
Once again, thank you for your help. Your responses inspired the following solution, although it is not as clean of a solution as I would like:
// "Measure.h"
template <class Derived, class UnitType>
class Measure {
public:
   double   Value;
   UnitType Units;

   virtual const Derived& Convert(const UnitType destUnits) = 0;

   // Declare a number of other pure virtual functions
};

// "Length Units.h"
class LengthUnits {
public:
    enum List {
        METERS,
        MILES,
    };
};

// "Length.h"
class Length : public Measure<Length, LengthUnits> {
public:
   // Declare additional methods
};


Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: Creating derived type from a base class template Pin
Stuart Dootson13-Mar-09 14:02
professionalStuart Dootson13-Mar-09 14:02 
GeneralRe: Creating derived type from a base class template Pin
Skippums19-Mar-09 9:40
Skippums19-Mar-09 9:40 
QuestionMultiByteToWideChar crashes out on longer strings [modified] Pin
RichardBrock13-Mar-09 4:45
RichardBrock13-Mar-09 4:45 
AnswerRe: MultiByteToWideChar crashes out on longer strings Pin
led mike13-Mar-09 5:37
led mike13-Mar-09 5:37 
GeneralRe: MultiByteToWideChar crashes out on longer strings Pin
RichardBrock13-Mar-09 6:22
RichardBrock13-Mar-09 6:22 
QuestionRe: MultiByteToWideChar crashes out on longer strings Pin
led mike13-Mar-09 7:40
led mike13-Mar-09 7:40 
AnswerRe: MultiByteToWideChar crashes out on longer strings Pin
RichardBrock13-Mar-09 8:00
RichardBrock13-Mar-09 8:00 
GeneralRe: MultiByteToWideChar crashes out on longer strings Pin
led mike13-Mar-09 8:41
led mike13-Mar-09 8:41 
AnswerRe: MultiByteToWideChar crashes out on longer strings Pin
Akt_4_U13-Mar-09 5:39
Akt_4_U13-Mar-09 5:39 
GeneralRe: MultiByteToWideChar crashes out on longer strings Pin
RichardBrock13-Mar-09 6:26
RichardBrock13-Mar-09 6:26 
Questionget the font of my control and set it with an other (the face name) Pin
MrKBA13-Mar-09 4:26
MrKBA13-Mar-09 4:26 
AnswerRe: get the font of my control and set it with an other (the face name) Pin
Code-o-mat13-Mar-09 5:15
Code-o-mat13-Mar-09 5:15 
GeneralRe: get the font of my control and set it with an other (the face name) Pin
MrKBA13-Mar-09 5:30
MrKBA13-Mar-09 5:30 
GeneralRe: get the font of my control and set it with an other (the face name) Pin
Code-o-mat13-Mar-09 5:39
Code-o-mat13-Mar-09 5:39 
GeneralRe: get the font of my control and set it with an other (the face name) Pin
MrKBA13-Mar-09 5:47
MrKBA13-Mar-09 5:47 
GeneralRe: get the font of my control and set it with an other (the face name) Pin
Code-o-mat13-Mar-09 5:57
Code-o-mat13-Mar-09 5:57 
GeneralRe: get the font of my control and set it with an other (the face name) Pin
MrKBA13-Mar-09 6:29
MrKBA13-Mar-09 6:29 

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.