Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

howto create private classes

Status
Not open for further replies.

AMosmann

Programmer
May 27, 2003
82
DE
I want to built a private class in another class like

class CBigBrother{
class CPocketOfBigBrother{
CPen Pen1,Pen2;
}
Write(CPocketOfBigBrother PocketLocal);
CPocketOfBigBrother Pocket;
}

CBigBrother::Write(CPocketOfBigBrother PocketLocal){
if (PocketLocal.Pen1.Color==red){
...
};
};

Greetings Andreas
 
Under the component developement heading on msdn there is an article entitled from cpp to com by Markus Horstmann. It is a easily readable, from the ground up look at COM. While you may or may not decide to implement a COM server, many of the techniques that went into the design of COM can be used individually. It sounds like interfaces might solve your problem.

WR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top