Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: public & protect question Pin
Rajkumar R11-May-08 22:24
Rajkumar R11-May-08 22:24 
QuestionWhich message the Windows sent indication the creation of a new file to Explorer windows Pin
Nitheesh George11-May-08 21:36
Nitheesh George11-May-08 21:36 
AnswerRe: Which message the Windows sent indication the creation of a new file to Explorer windows Pin
Naveen11-May-08 21:45
Naveen11-May-08 21:45 
GeneralRe: Which message the Windows sent indication the creation of a new file to Explorer windows Pin
Nitheesh George11-May-08 22:18
Nitheesh George11-May-08 22:18 
QuestionClass ProtoType Pin
dehseth11-May-08 21:30
dehseth11-May-08 21:30 
QuestionRe: Class ProtoType Pin
CPallini11-May-08 21:41
mveCPallini11-May-08 21:41 
AnswerRe: Class ProtoType Pin
dehseth11-May-08 22:23
dehseth11-May-08 22:23 
GeneralRe: Class ProtoType Pin
CPallini11-May-08 22:50
mveCPallini11-May-08 22:50 
Deferred declaration (the one you used for class CMain should work, but you've define methods containing references to CMain methods inside CChild source (not inside the header).

for instance:
//FILE: B.h
class A;
class B 
{
  A * _pA;

  B(pA){_pA=pA;}
  void DoSomethingWithA();
};
//////////////////////////////////
//FILE B.cpp
void B::DoSomethingWithA()
{
  _pA->DoSomething();
}

should work, while

//FILE: B.h
class A;
class B
{
A * _pA;

B(pA){_pA=pA;}
void DoSomethingWithA()
{
_pA->DoSomething(); // ERROR, UNDEFINED REFERENCE
}
};

shouldn't.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


QuestionRe: Class ProtoType Pin
dehseth12-May-08 1:35
dehseth12-May-08 1:35 
QuestionRe: Class ProtoType Pin
CPallini12-May-08 2:08
mveCPallini12-May-08 2:08 
GeneralRe: Class ProtoType Pin
dehseth12-May-08 2:55
dehseth12-May-08 2:55 
AnswerRe: Class ProtoType Pin
Rajkumar R11-May-08 21:43
Rajkumar R11-May-08 21:43 
GeneralRe: Class ProtoType Pin
dehseth11-May-08 22:16
dehseth11-May-08 22:16 
GeneralRe: Class ProtoType Pin
Rajkumar R11-May-08 22:27
Rajkumar R11-May-08 22:27 
QuestionMFC Problem with writing file Pin
mihai12311-May-08 21:16
mihai12311-May-08 21:16 
AnswerRe: MFC Problem with writing file Pin
Naveen11-May-08 21:25
Naveen11-May-08 21:25 
GeneralRe: MFC Problem with writing file Pin
mihai12311-May-08 22:10
mihai12311-May-08 22:10 
QuestionSkin Pin
john563211-May-08 21:06
john563211-May-08 21:06 
AnswerRe: Skin Pin
Hamid_RT11-May-08 21:10
Hamid_RT11-May-08 21:10 
QuestionRe: Skin Pin
Rajesh R Subramanian11-May-08 22:53
professionalRajesh R Subramanian11-May-08 22:53 
QuestionCreateThread and AfxBeginThread Pin
tom groezer11-May-08 20:54
tom groezer11-May-08 20:54 
AnswerRe: CreateThread and AfxBeginThread Pin
Hamid_RT11-May-08 21:17
Hamid_RT11-May-08 21:17 
AnswerRe: CreateThread and AfxBeginThread Pin
CPallini11-May-08 21:20
mveCPallini11-May-08 21:20 
AnswerRe: CreateThread and AfxBeginThread Pin
ShilpiP11-May-08 22:55
ShilpiP11-May-08 22:55 
AnswerRe: CreateThread and AfxBeginThread Pin
Mark Salsbery12-May-08 6:13
Mark Salsbery12-May-08 6:13 

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.