Click here to Skip to main content
15,907,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with recursive dir. copying Pin
__yb15-Nov-05 11:12
__yb15-Nov-05 11:12 
QuestionSetting (+) for Tree Item even if there are no children under the item. Pin
Maximilien15-Nov-05 9:15
Maximilien15-Nov-05 9:15 
QuestionRe: Setting (+) for Tree Item even if there are no children under the item. Pin
David Crow15-Nov-05 10:05
David Crow15-Nov-05 10:05 
AnswerRe: Setting (+) for Tree Item even if there are no children under the item. Pin
PJ Arends15-Nov-05 11:15
professionalPJ Arends15-Nov-05 11:15 
AnswerRe: Setting (+) for Tree Item even if there are no children under the item. Pin
Maximilien15-Nov-05 13:00
Maximilien15-Nov-05 13:00 
QuestionHow to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 8:56
Franken15-Nov-05 8:56 
AnswerRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow15-Nov-05 10:09
David Crow15-Nov-05 10:09 
QuestionRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 23:29
Franken15-Nov-05 23:29 
Thanks for your help. But I still have a problem. GetActiveDocument() is not a member of CWnd. With GetMainWnd() I can only access GetActiveWindow(). What is my mistake? Do I have to do a type cast? I've tried the following:

CFrameWnd* pFrame = (CFrameWnd*)GetMainWnd();<br />
CMyDocument* pDoc = (CMyDocument*)pFrame->GetActiveDocument();<br />
pDoc->myVariable = myValue;


With this code I don't get a compile error but a runtime error;
QuestionRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow16-Nov-05 2:43
David Crow16-Nov-05 2:43 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
Franken15-Nov-05 23:47
Franken15-Nov-05 23:47 
GeneralRe: How to change CDocument Variables from within the CWinApp derived Class? Pin
David Crow16-Nov-05 3:10
David Crow16-Nov-05 3:10 
Questionerror LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 6:53
celllllllll15-Nov-05 6:53 
AnswerRe: error LNK2001: unresolved external symbol Pin
David Crow15-Nov-05 7:20
David Crow15-Nov-05 7:20 
GeneralRe: error LNK2001: unresolved external symbol Pin
celllllllll15-Nov-05 7:31
celllllllll15-Nov-05 7:31 
GeneralRe: error LNK2001: unresolved external symbol Pin
tranglt15-Nov-05 18:55
tranglt15-Nov-05 18:55 
GeneralRe: error LNK2001: unresolved external symbol Pin
sunit515-Nov-05 20:18
sunit515-Nov-05 20:18 
Questiondatabase schema design question Pin
ppp00115-Nov-05 6:43
ppp00115-Nov-05 6:43 
AnswerRe: database schema design question Pin
Mayur Mahajan15-Nov-05 14:36
Mayur Mahajan15-Nov-05 14:36 
Questiondo not show MFC Window Pin
inf00915-Nov-05 6:30
inf00915-Nov-05 6:30 
AnswerRe: do not show MFC Window Pin
David Crow15-Nov-05 7:18
David Crow15-Nov-05 7:18 
AnswerRe: do not show MFC Window Pin
__yb15-Nov-05 10:56
__yb15-Nov-05 10:56 
GeneralRe: do not show MFC Window Pin
inf00916-Nov-05 6:13
inf00916-Nov-05 6:13 
QuestionDrawText !! Pin
hatemtaleb15-Nov-05 6:24
hatemtaleb15-Nov-05 6:24 
AnswerRe: DrawText !! Pin
Mike Dimmick15-Nov-05 6:30
Mike Dimmick15-Nov-05 6:30 
AnswerRe: DrawText !! Pin
mikanu15-Nov-05 6:31
mikanu15-Nov-05 6:31 

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.