Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ClassWizard for Visual Studio 2005 Pin
DanYELL3-Jan-06 9:15
DanYELL3-Jan-06 9:15 
GeneralRe: ClassWizard for Visual Studio 2005 Pin
Joe Woodbury4-Jan-06 18:29
professionalJoe Woodbury4-Jan-06 18:29 
QuestionIntercept login from locked screen Pin
davedoc3-Jan-06 4:27
davedoc3-Jan-06 4:27 
AnswerRe: Intercept login from locked screen Pin
David Crow3-Jan-06 6:46
David Crow3-Jan-06 6:46 
AnswerRe: Intercept login from locked screen Pin
sunit53-Jan-06 19:10
sunit53-Jan-06 19:10 
GeneralRe: Intercept login from locked screen Pin
davedoc4-Jan-06 1:43
davedoc4-Jan-06 1:43 
QuestionHow to access a Dialog from another class X? Pin
Eytukan3-Jan-06 3:37
Eytukan3-Jan-06 3:37 
AnswerRe: How to access a Dialog from another class X? Pin
benjymous3-Jan-06 4:48
benjymous3-Jan-06 4:48 
You need to use virtual functions - a function that is defined in the base class, but implemented in the derived class, like so:

<br />
class X:<br />
{<br />
  SendData();<br />
  RecieveData();<br />
<br />
  virtual void UpdateDialog(int message) = 0; // This is a pure virtual - no implementation in class X<br />
}<br />
<br />
X::RecieveData()<br />
{<br />
  UpdateDialog();  // This will perform the UpdateDialog functionality defined in CDialog below<br />
}<br />
<br />
<br />
class CMyDialog : public X<br />
{<br />
  virtual void UpdateDialog(int message);<br />
}<br />
<br />
CMyDialog::UpdateDialog(int message)<br />
{<br />
  //Update your dialog here!<br />
}<br />


--
Help me! I'm turning into a grapefruit!
Buzzwords!

GeneralRe: How to access a Dialog from another class X? Pin
Eytukan3-Jan-06 4:58
Eytukan3-Jan-06 4:58 
AnswerRe: How to access a Dialog from another class X? Pin
Prakash Nadar3-Jan-06 5:05
Prakash Nadar3-Jan-06 5:05 
GeneralRe: How to access a Dialog from another class X? Pin
Eytukan3-Jan-06 5:10
Eytukan3-Jan-06 5:10 
GeneralRe: How to access a Dialog from another class X? Pin
S Douglas3-Jan-06 20:25
professionalS Douglas3-Jan-06 20:25 
Questionthread/application priority Pin
tonyro3-Jan-06 3:30
tonyro3-Jan-06 3:30 
AnswerRe: thread/application priority Pin
khan++3-Jan-06 3:42
khan++3-Jan-06 3:42 
AnswerRe: thread/application priority Pin
Ali Mojtabaee3-Jan-06 3:50
Ali Mojtabaee3-Jan-06 3:50 
GeneralRe: thread/application priority Pin
tonyro3-Jan-06 3:53
tonyro3-Jan-06 3:53 
GeneralRe: thread/application priority Pin
basementman3-Jan-06 4:59
basementman3-Jan-06 4:59 
GeneralRe: thread/application priority Pin
Ali Mojtabaee4-Jan-06 5:43
Ali Mojtabaee4-Jan-06 5:43 
AnswerRe: thread/application priority Pin
Michael Dunn3-Jan-06 7:44
sitebuilderMichael Dunn3-Jan-06 7:44 
GeneralRe: thread/application priority Pin
tonyro4-Jan-06 4:53
tonyro4-Jan-06 4:53 
GeneralRe: thread/application priority Pin
Michael Dunn5-Jan-06 9:16
sitebuilderMichael Dunn5-Jan-06 9:16 
AnswerRe: thread/application priority Pin
Stephen Hewitt9-Jan-06 2:04
Stephen Hewitt9-Jan-06 2:04 
Questionproblem with buffer in fread and fwrite Pin
hamsha_ir3-Jan-06 2:38
hamsha_ir3-Jan-06 2:38 
AnswerRe: problem with buffer in fread and fwrite Pin
kakan3-Jan-06 2:56
professionalkakan3-Jan-06 2:56 
AnswerRe: problem with buffer in fread and fwrite Pin
Laxman93-Jan-06 2:59
Laxman93-Jan-06 2:59 

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.