Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving a Document with values from dynamic array? Pin
dazinith3-Apr-02 3:10
dazinith3-Apr-02 3:10 
GeneralRe: Saving a Document with values from dynamic array? Pin
Ravi Bhavnani3-Apr-02 3:15
professionalRavi Bhavnani3-Apr-02 3:15 
Questionhow to create a imput mask? Pin
jafrazee2-Apr-02 5:39
jafrazee2-Apr-02 5:39 
AnswerRe: how to create a imput mask? Pin
Chris Losinger2-Apr-02 5:37
professionalChris Losinger2-Apr-02 5:37 
AnswerRe: how to create a imput mask? Pin
dazinith2-Apr-02 6:38
dazinith2-Apr-02 6:38 
GeneralRe: how to create a imput mask? Pin
Jon Hulatt2-Apr-02 23:37
Jon Hulatt2-Apr-02 23:37 
GeneralRe: how to create a imput mask? Pin
dazinith3-Apr-02 3:07
dazinith3-Apr-02 3:07 
Generalicons Pin
tom harwood2-Apr-02 5:30
tom harwood2-Apr-02 5:30 
GeneralRe: icons Pin
lucy2-Apr-02 6:34
lucy2-Apr-02 6:34 
GeneralRe: icons Pin
Shog92-Apr-02 11:59
sitebuilderShog92-Apr-02 11:59 
GeneralRe: icons Pin
moliate2-Apr-02 12:35
moliate2-Apr-02 12:35 
Questionsomething wrong with code??? Pin
Rajveer2-Apr-02 5:07
Rajveer2-Apr-02 5:07 
AnswerRe: something wrong with code??? Pin
Hans Ruck2-Apr-02 5:19
Hans Ruck2-Apr-02 5:19 
GeneralRe: something wrong with code??? Pin
Rajveer2-Apr-02 5:48
Rajveer2-Apr-02 5:48 
AnswerRe: something wrong with code??? Pin
dlhson2-Apr-02 5:22
dlhson2-Apr-02 5:22 
AnswerRe: something wrong with code??? Pin
Christian Graus2-Apr-02 9:32
protectorChristian Graus2-Apr-02 9:32 
GeneralCustom Word toolbars Pin
AlanW2-Apr-02 4:47
AlanW2-Apr-02 4:47 
GeneralRe: Custom Word toolbars Pin
dlhson2-Apr-02 5:16
dlhson2-Apr-02 5:16 
GeneralCComboBox Font Pin
Stew2-Apr-02 4:25
Stew2-Apr-02 4:25 
GeneralRe: CComboBox Font Pin
Mazdak2-Apr-02 4:36
Mazdak2-Apr-02 4:36 
GeneralRe: CComboBox Font Pin
Stew2-Apr-02 4:40
Stew2-Apr-02 4:40 
GeneralRe: CComboBox Font Pin
dlhson2-Apr-02 5:08
dlhson2-Apr-02 5:08 
QuestionHow would you approach this situation? Pin
User 98852-Apr-02 4:17
User 98852-Apr-02 4:17 
AnswerRe: How would you approach this situation? Pin
Mukkie2-Apr-02 5:12
Mukkie2-Apr-02 5:12 
Hi!

Maybe: define base class for translating commands into strings:
class ICmdProtocol;

redefine method in the command class:

CString toString( IProtocol * );

And now, move the conversion implementation from command itself to protocol, or to command based on actual protocol.
You can always define current protocol for all commands too (as static pointer in base class for example).

Hope this helps

Mukkie
AnswerRe: How would you approach this situation? Pin
Joaquín M López Muñoz2-Apr-02 5:52
Joaquín M López Muñoz2-Apr-02 5:52 

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.