Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't install Platform SDK Pin
Rama Krishna Vavilala17-Jul-02 15:15
Rama Krishna Vavilala17-Jul-02 15:15 
QuestionHow to CREATE file with CFile? Pin
Raphael Kindt17-Jul-02 10:31
Raphael Kindt17-Jul-02 10:31 
AnswerRe: How to CREATE file with CFile? Pin
jmkhael17-Jul-02 10:39
jmkhael17-Jul-02 10:39 
AnswerRe: How to CREATE file with CFile? Pin
User 842017-Jul-02 10:38
User 842017-Jul-02 10:38 
GeneralRe: How to CREATE file with CFile? Pin
Raphael Kindt17-Jul-02 10:47
Raphael Kindt17-Jul-02 10:47 
Generalusing inherited MFC dialog classes Pin
moredip17-Jul-02 10:23
moredip17-Jul-02 10:23 
GeneralRe: using inherited MFC dialog classes Pin
Joaquín M López Muñoz17-Jul-02 11:11
Joaquín M López Muñoz17-Jul-02 11:11 
GeneralRe: using inherited MFC dialog classes Pin
moredip17-Jul-02 11:39
moredip17-Jul-02 11:39 
Yes, m_tab is declared twice. Or rather, was. I just removed it from DCenSelOffset.

That didn't work Smile | :)

This got me thinking, and I /think/ I've worked out what was happening. m_tab was declared in DCenSelMapping, and included in the AFX_DATA_MAP. So when DCenSelBase::InitDialog() called Dialog::InitDialog(), it was only initialising the variables declared in DCenSelBase's AFX_DATA_MAP, so it didn't initialise the inherited class's AFX_DATA_MAP. So I now have m_tab as a member of CCenSelBase, and have added it to all 3 class's AFX_DATA_MAP. And it works.

Does my explaination seem plausible?

Anyway, to cut a long story short, it now works. Thanks for the help Joaquin.

Pete
GeneralRe: using inherited MFC dialog classes Pin
Joaquín M López Muñoz17-Jul-02 11:44
Joaquín M López Muñoz17-Jul-02 11:44 
GeneralOwnerDraw stuff working differently in Win2K. Pin
Chris Meech17-Jul-02 9:26
Chris Meech17-Jul-02 9:26 
Generalsludgy character array problem Pin
John Aldrich17-Jul-02 8:39
John Aldrich17-Jul-02 8:39 
GeneralRe: sludgy character array problem Pin
Ranjan Banerji17-Jul-02 9:15
Ranjan Banerji17-Jul-02 9:15 
GeneralRe: sludgy character array problem Pin
jmkhael17-Jul-02 10:14
jmkhael17-Jul-02 10:14 
GeneralUnicode + console app + cout Pin
Chris Losinger17-Jul-02 8:25
professionalChris Losinger17-Jul-02 8:25 
GeneralRe: Unicode + console app + cout Pin
Navin17-Jul-02 10:33
Navin17-Jul-02 10:33 
GeneralRe: Unicode + console app + cout Pin
Chris Losinger17-Jul-02 10:49
professionalChris Losinger17-Jul-02 10:49 
GeneralRe: Unicode + console app + cout Pin
Daniel Lohmann17-Jul-02 13:58
Daniel Lohmann17-Jul-02 13:58 
QuestionTitle Bar Font? Pin
Dave_17-Jul-02 8:14
Dave_17-Jul-02 8:14 
AnswerRe: Title Bar Font? Pin
Anonymous17-Jul-02 8:27
Anonymous17-Jul-02 8:27 
GeneralRe: Title Bar Font? Pin
Dave_17-Jul-02 8:28
Dave_17-Jul-02 8:28 
AnswerRe: Title Bar Font? Pin
Jeremy Falcon17-Jul-02 11:29
professionalJeremy Falcon17-Jul-02 11:29 
QuestionTrayClock??? Pin
kekeguo17-Jul-02 8:12
kekeguo17-Jul-02 8:12 
GeneralQuestion about sequence of events Pin
ns17-Jul-02 8:12
ns17-Jul-02 8:12 
GeneralRe: Question about sequence of events Pin
Ravi Bhavnani17-Jul-02 9:07
professionalRavi Bhavnani17-Jul-02 9:07 
GeneralWoW! Most excellent! Pin
ns17-Jul-02 9:10
ns17-Jul-02 9:10 

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.