Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Controls redrawn in odd places?? Pin
Tomasz Sowinski13-Aug-02 1:55
Tomasz Sowinski13-Aug-02 1:55 
GeneralDevelop a Code Completion control for a Text Control - maybe extended CEdit Pin
Deepak Mani12-Aug-02 18:35
Deepak Mani12-Aug-02 18:35 
QuestionHow to access CMainFrame funtion from CView Pin
tulc_kris12-Aug-02 18:15
tulc_kris12-Aug-02 18:15 
AnswerRe: How to access CMainFrame funtion from CView Pin
Christian Graus12-Aug-02 18:23
protectorChristian Graus12-Aug-02 18:23 
GeneralModifying external files Pin
Anonymous12-Aug-02 17:54
Anonymous12-Aug-02 17:54 
GeneralRe: Modifying external files Pin
Chris Losinger12-Aug-02 19:23
professionalChris Losinger12-Aug-02 19:23 
GeneralRe: Modifying external files Pin
Anonymous12-Aug-02 20:10
Anonymous12-Aug-02 20:10 
QuestionWhat purpose does this type of class declaration serve? Pin
clintsinger12-Aug-02 17:20
clintsinger12-Aug-02 17:20 
If I have a class A, I can also create a class within it called B. Is there any practical use for this? To illustrate my question I will give an example.

<br />
class A<br />
{<br />
  int m_nMemberOfA;<br />
<br />
  class B<br />
  {<br />
  public:<br />
    void MethodOfB();<br />
  };<br />
};<br />
<br />
...<br />
<br />
void A::B::MethodOfB()<br />
{<br />
  ...<br />
  // Is it possible to access A::m_nMemberOfA?<br />
}<br />


Can B gain access to the member variables of A or anything like that without having to pass the "this" pointer?

Thanks in advance,
Clint
AnswerRe: What purpose does this type of class declaration serve? Pin
Christian Graus12-Aug-02 17:25
protectorChristian Graus12-Aug-02 17:25 
AnswerRe: What purpose does this type of class declaration serve? Pin
JT Anderson13-Aug-02 7:21
JT Anderson13-Aug-02 7:21 
QuestionHow to write data to cdr Pin
nlecren12-Aug-02 17:15
nlecren12-Aug-02 17:15 
AnswerRe: How to write data to cdr Pin
Christian Graus12-Aug-02 17:26
protectorChristian Graus12-Aug-02 17:26 
AnswerRe: How to write data to cdr Pin
Scott H. Settlemier13-Aug-02 5:23
Scott H. Settlemier13-Aug-02 5:23 
GeneralRe: How to write data to cdr Pin
nlecren13-Aug-02 7:08
nlecren13-Aug-02 7:08 
GeneralRe: splitting Pin
Christian Graus12-Aug-02 16:05
protectorChristian Graus12-Aug-02 16:05 
GeneralRe: splitting Pin
wong190712-Aug-02 16:36
wong190712-Aug-02 16:36 
GeneralRe: splitting Pin
Christian Graus12-Aug-02 17:11
protectorChristian Graus12-Aug-02 17:11 
QuestionHow to create your own "ad hoc" framework? Pin
Anonymous12-Aug-02 15:54
Anonymous12-Aug-02 15:54 
AnswerRe: How to create your own "ad hoc" framework? Pin
Tomasz Sowinski12-Aug-02 23:00
Tomasz Sowinski12-Aug-02 23:00 
Generalsplitting view Pin
wong190712-Aug-02 15:49
wong190712-Aug-02 15:49 
GeneralRe: splitting view Pin
Weiye Chen12-Aug-02 18:39
Weiye Chen12-Aug-02 18:39 
GeneralRe: splitting view Pin
wong190712-Aug-02 19:54
wong190712-Aug-02 19:54 
GeneralRe: splitting view Pin
Weiye Chen12-Aug-02 20:16
Weiye Chen12-Aug-02 20:16 
GeneralRe: splitting view Pin
wong190712-Aug-02 21:46
wong190712-Aug-02 21:46 
GeneralRe: splitting view Pin
Weiye Chen12-Aug-02 22:05
Weiye Chen12-Aug-02 22:05 

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.