Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing to CD-R or CDRW Pin
Carlos Antollini3-Jan-02 2:50
Carlos Antollini3-Jan-02 2:50 
QuestionCasting? Pin
Stan the man3-Jan-02 1:32
Stan the man3-Jan-02 1:32 
AnswerRe: Casting? Pin
Christian Graus3-Jan-02 1:41
protectorChristian Graus3-Jan-02 1:41 
GeneralRe: Casting? Pin
Stan the man3-Jan-02 1:54
Stan the man3-Jan-02 1:54 
GeneralRe: Casting? Pin
Christian Graus3-Jan-02 2:04
protectorChristian Graus3-Jan-02 2:04 
GeneralRe: Casting? Pin
Stan the man3-Jan-02 2:09
Stan the man3-Jan-02 2:09 
GeneralRe: Casting? Pin
Christian Graus3-Jan-02 9:08
protectorChristian Graus3-Jan-02 9:08 
GeneralRe: Casting? Pin
Steen Krogsgaard4-Jan-02 3:01
Steen Krogsgaard4-Jan-02 3:01 
I'm not quite sure what your problem is, but it sounds kindda like a problem I ran into some time ago. I had a number of views, some derived from CFormView, som directly from CView, that were shown in a multi-view SDI app. I wanted to put some general-purpose functions into all the view, but since all my views were not derived form the same base class I couldn't use the old fashion OOP solution. I used a trick described somewhere (I'll get back to that later) that used templates to "add" functionality to existing classes. Basically, instead of defining the common functions in a base class they were added to the top-level classes by the template. If this is what you want, read on. If not, sorry for wasting your time Wink | ;-)

I haven't got the information at hand right now, but I can find it if you want. I think it was a series of papers on CodeGuru on a totally different subject (that was back when CodeGuru still contained something interesting - but then all the Gods (Chris, Tom Archer etc) moved to CP, and so did I). It is not an easy solutions, you need to modify the messagemap macros and use an implementation base class to avoid code bloat, but it works nicely once it's set up. I even put the stuff in a DLL which only complicates it further...

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralSilly question about CAnimateCtrl Pin
Zell3-Jan-02 0:37
Zell3-Jan-02 0:37 
GeneralRe: Silly question about CAnimateCtrl Pin
Michael Dunn3-Jan-02 8:51
sitebuilderMichael Dunn3-Jan-02 8:51 
GeneralSocket variables Pin
Rickard Andersson203-Jan-02 0:35
Rickard Andersson203-Jan-02 0:35 
GeneralRe: Socket variables Pin
NormDroid3-Jan-02 1:20
professionalNormDroid3-Jan-02 1:20 
GeneralNeed information about speech recognition engines Pin
56789012342-Jan-02 23:17
56789012342-Jan-02 23:17 
GeneralRe: Need information about speech recognition engines Pin
James R. Twine3-Jan-02 8:49
James R. Twine3-Jan-02 8:49 
GeneralRe: Need information about speech recognition engines Pin
56789012345-Jan-02 18:27
56789012345-Jan-02 18:27 
GeneralQuerying About Internet Zone Pin
2-Jan-02 23:09
suss2-Jan-02 23:09 
GeneralRe: Querying About Internet Zone Pin
Philip Patrick2-Jan-02 23:34
professionalPhilip Patrick2-Jan-02 23:34 
GeneralRe: Querying About Internet Zone Pin
Philip Patrick3-Jan-02 5:02
professionalPhilip Patrick3-Jan-02 5:02 
GeneralDynamic Splitter Pin
StuartHall2-Jan-02 21:34
StuartHall2-Jan-02 21:34 
GeneralRe: Dynamic Splitter Pin
Philip Patrick2-Jan-02 23:48
professionalPhilip Patrick2-Jan-02 23:48 
GeneralCan't create modeless dialogs Pin
hierro2-Jan-02 21:31
hierro2-Jan-02 21:31 
GeneralRe: Can't create modeless dialogs Pin
Christian Graus2-Jan-02 21:38
protectorChristian Graus2-Jan-02 21:38 
GeneralRe: Can't create modeless dialogs Pin
hierro2-Jan-02 22:25
hierro2-Jan-02 22:25 
GeneralRe: Can't create modeless dialogs Pin
hierro2-Jan-02 21:42
hierro2-Jan-02 21:42 
GeneralRe: Can't create modeless dialogs Pin
Philip Patrick2-Jan-02 23:40
professionalPhilip Patrick2-Jan-02 23:40 

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.