Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tryin to implement a class in a header file Pin
toxcct30-Nov-05 0:02
toxcct30-Nov-05 0:02 
QuestionUnicode strings Pin
Ciprian Cana29-Nov-05 23:03
Ciprian Cana29-Nov-05 23:03 
AnswerRe: Unicode strings Pin
Mike Dimmick30-Nov-05 5:45
Mike Dimmick30-Nov-05 5:45 
QuestionQuery: Getting number of tables & their names in database using access automation? Pin
Ankush Mehta29-Nov-05 22:46
Ankush Mehta29-Nov-05 22:46 
AnswerRe: Query: Getting number of tables & their names in database using access automation? Pin
Ankush Mehta30-Nov-05 18:19
Ankush Mehta30-Nov-05 18:19 
QuestionCrystal Reports API Problem Pin
Rahim Rattani29-Nov-05 21:59
Rahim Rattani29-Nov-05 21:59 
QuestionApp deployement with VC2005 Express Pin
Cedric Moonen29-Nov-05 21:55
Cedric Moonen29-Nov-05 21:55 
QuestionAccess dialog's MFC controls from function outside dialog class scope Pin
ProbeVision29-Nov-05 21:32
ProbeVision29-Nov-05 21:32 
Hello,

I have a MFC aplication with a dialog. In the same file where that dialog's methods are defined (dialog.cpp), i have defined some functions that don't belong to the dialog nor any other class. Some of those funcions need to access to the control's (some progress bar and a label) methods of that dialog.

Is that possible?. I've tried to define a global pointer to the dialog in the dialog.cpp file, and asign it to the dialog in the constructor method (pointer=this). Then i should access to the controls from the functions by using: pointer->GetDlgItem(ID)->SetWhatever(); , but i can't.

Could you help me?

Thanks in advance.
AnswerRe: Access dialog's MFC controls from function outside dialog class scope Pin
Cedric Moonen29-Nov-05 22:30
Cedric Moonen29-Nov-05 22:30 
GeneralRe: Access dialog's MFC controls from function outside dialog class scope Pin
ProbeVision30-Nov-05 20:33
ProbeVision30-Nov-05 20:33 
QuestionRe: Access dialog's MFC controls from function outside dialog class scope Pin
David Crow30-Nov-05 2:40
David Crow30-Nov-05 2:40 
AnswerRe: Access dialog's MFC controls from function outside dialog class scope Pin
ProbeVision30-Nov-05 20:23
ProbeVision30-Nov-05 20:23 
GeneralRe: Access dialog's MFC controls from function outside dialog class scope Pin
David Crow1-Dec-05 2:44
David Crow1-Dec-05 2:44 
GeneralRe: Access dialog's MFC controls from function outside dialog class scope Pin
ProbeVision1-Dec-05 19:52
ProbeVision1-Dec-05 19:52 
QuestionRecursion and Tree in MFC Pin
Aqueel29-Nov-05 20:20
Aqueel29-Nov-05 20:20 
AnswerRe: Recursion and Tree in MFC Pin
David Crow30-Nov-05 2:42
David Crow30-Nov-05 2:42 
QuestionHow to differentiate MFC functions and SDK Pin
snprani29-Nov-05 20:08
snprani29-Nov-05 20:08 
AnswerRe: How to differentiate MFC functions and SDK Pin
Rajesh R Subramanian29-Nov-05 20:31
professionalRajesh R Subramanian29-Nov-05 20:31 
GeneralRe: How to differentiate MFC functions and SDK Pin
ThatsAlok30-Nov-05 2:17
ThatsAlok30-Nov-05 2:17 
QuestionRe: How to differentiate MFC functions and SDK Pin
David Crow30-Nov-05 2:45
David Crow30-Nov-05 2:45 
AnswerRe: How to differentiate MFC functions and SDK Pin
ThatsAlok30-Nov-05 18:34
ThatsAlok30-Nov-05 18:34 
GeneralRe: How to differentiate MFC functions and SDK Pin
David Crow1-Dec-05 3:26
David Crow1-Dec-05 3:26 
AnswerRe: How to differentiate MFC functions and SDK Pin
Eytukan29-Nov-05 23:04
Eytukan29-Nov-05 23:04 
GeneralRe: How to differentiate MFC functions and SDK Pin
toxcct30-Nov-05 2:30
toxcct30-Nov-05 2:30 
JokeRe: How to differentiate MFC functions and SDK Pin
Eytukan30-Nov-05 3:55
Eytukan30-Nov-05 3:55 

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.