Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem Redirecting output of command in _execl Pin
GameProfessor22-Apr-07 16:44
GameProfessor22-Apr-07 16:44 
AnswerRe: Problem Redirecting output of command in _execl Pin
David Crow22-Apr-07 17:05
David Crow22-Apr-07 17:05 
QuestionMeasure string's length Pin
LiYS22-Apr-07 15:49
LiYS22-Apr-07 15:49 
AnswerRe: Measure string's length Pin
Michael Dunn22-Apr-07 16:09
sitebuilderMichael Dunn22-Apr-07 16:09 
QuestionPointers and arrays Pin
sawerr22-Apr-07 9:56
sawerr22-Apr-07 9:56 
AnswerRe: Pointers and arrays Pin
sisira22-Apr-07 10:09
sisira22-Apr-07 10:09 
AnswerRe: Pointers and arrays Pin
Michael Dunn22-Apr-07 16:11
sitebuilderMichael Dunn22-Apr-07 16:11 
QuestionMutual Include Pin
ytod22-Apr-07 5:26
ytod22-Apr-07 5:26 
It seems using the following scheme would cause problem while building in MS Visual Studio 2005. Can someone give any suggestion on HOW TO ACCESS MEMBER VARIABLE OF b IN a.cpp? Some preprocessor instructions would be appreciated. Thanks a lot.


// a.h<br />
class b;<br />
class a : public A<br />
{<br />
public:<br />
    // Constructor, Destructor, and other members and functions. (Omitted)<br />
    //...<br />
    //<br />
    void SomeFunction();<br />
    b* m_pb;<br />
};<br />
<br />
// a.cpp<br />
#include "a.h"<br />
#include "b.h"<br />
void a::SomeFunction()<br />
{<br />
    MEMBERVARIABLEDATATYPE Member_Variable_of_b = m_pb->MemberVariable; // This would cause compiler error<br />
}<br />
<br />
// b.h<br />
class a;<br />
class b : public B<br />
{<br />
public:<br />
    // Constructor, Destructor, and other members and functions. (Omitted)<br />
    //...<br />
    //<br />
    a* m_pa;<br />
    MEMBERVARIABLEDATATYPE MemberVariable;<br />
    // MEMBERVARIABLEDATATYPE is well defined, for example, int, double, etc.<br />
};

AnswerRe: Mutual Include Pin
bob1697222-Apr-07 6:07
bob1697222-Apr-07 6:07 
QuestionHelp About RTC Pin
kcynic22-Apr-07 3:07
kcynic22-Apr-07 3:07 
AnswerRe: Help About RTC Pin
Mark Salsbery22-Apr-07 7:00
Mark Salsbery22-Apr-07 7:00 
GeneralRe: Help About RTC Pin
kcynic22-Apr-07 22:24
kcynic22-Apr-07 22:24 
GeneralRe: Help About RTC Pin
Mark Salsbery23-Apr-07 4:59
Mark Salsbery23-Apr-07 4:59 
GeneralRe: Help About RTC Pin
kcynic23-Apr-07 21:31
kcynic23-Apr-07 21:31 
QuestionScreen hooking Pin
hung_ngole22-Apr-07 0:27
hung_ngole22-Apr-07 0:27 
AnswerRe: Screen hooking Pin
Nibu babu thomas22-Apr-07 21:25
Nibu babu thomas22-Apr-07 21:25 
QuestionWait for processor being idle Pin
Gurkenscheibe21-Apr-07 23:39
Gurkenscheibe21-Apr-07 23:39 
AnswerRe: Wait for processor being idle Pin
Garth J Lancaster22-Apr-07 1:17
professionalGarth J Lancaster22-Apr-07 1:17 
GeneralRe: Wait for processor being idle Pin
Gurkenscheibe22-Apr-07 1:29
Gurkenscheibe22-Apr-07 1:29 
GeneralRe: Wait for processor being idle Pin
Garth J Lancaster22-Apr-07 1:43
professionalGarth J Lancaster22-Apr-07 1:43 
GeneralRe: Wait for processor being idle Pin
cmk22-Apr-07 12:47
cmk22-Apr-07 12:47 
AnswerRe: Wait for processor being idle Pin
cmk22-Apr-07 12:40
cmk22-Apr-07 12:40 
Questionmaking dll Pin
skylet21-Apr-07 22:11
skylet21-Apr-07 22:11 
AnswerRe: making dll Pin
Garth J Lancaster22-Apr-07 1:27
professionalGarth J Lancaster22-Apr-07 1:27 
GeneralRe: making dll Pin
skylet22-Apr-07 2:17
skylet22-Apr-07 2:17 

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.