Click here to Skip to main content
15,911,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do i automatically scroll to the bottom of a edit control when text gets added? Pin
Redeemer-dk1-Dec-02 10:03
Redeemer-dk1-Dec-02 10:03 
AnswerRe: How do i automatically scroll to the bottom of a edit control when text gets added? Pin
Daniel Ferguson1-Dec-02 14:17
Daniel Ferguson1-Dec-02 14:17 
Generalfriend member function can't access private member var?? what's wrong Pin
ttzzgg_807131-Dec-02 8:29
ttzzgg_807131-Dec-02 8:29 
ifstream & operator >> (ifstream &ifs, const DownKind & d)
{
ifs >> d.m_strKind >> endl >> d.m_strPath >> endl >>
d.m_strSuffix >> d.m_id >> d.m_idParent >> d.m_lstSub.size()
>> endl;
return ifs;
}

ofstream & operator << (ofstream &ofs, const DownKind & d)
{

return ofs;
}

// class declare
#define DOWNKINDBASE DownKindBase
class DownKind : public DOWNKINDBASE {
public:
friend ifstream & operator >> (ifstream &ifs, const DownKind &d);
friend ofstream & operator << (ofstream &, const DownKind &);
DownKind() ;
DownKind(string, string, string, int idParent = -1);
virtual ~DownKind() { clear(); }
string getKindName();
void setKindName(string);

string getPath();
void setPath(string);

void setSuffix(string);
string getSuffix();

virtual void clone(DownKindBase *);
void load();
void save();

virtual void addChild(DownKindBase *);
DownKindBase *findByKind(string );
protected:
virtual void readFile(FILE *);
virtual void writeFile(FILE *);
virtual void clear();
virtual void setParentId(int);
virtual int getParentId();

private:
string m_strKind;
string m_strSuffix;
string m_strPath;
int m_idParent; // parent id
int m_id; // current id

list<downkindbase*> m_lstSub;
};



could u please tell me what's wrong with this code, don't laught at me.
Generalerror C2248: 'm_idParent' : cannot access private member declared in class 'DownKind'------>this is the error infomation Pin
ttzzgg_807131-Dec-02 8:31
ttzzgg_807131-Dec-02 8:31 
GeneralRe: error C2248: 'm_idParent' : cannot access private member declared in class 'DownKind'------>this is the error infomation Pin
Christian Graus1-Dec-02 9:51
protectorChristian Graus1-Dec-02 9:51 
GeneralRe: friend member function can't access private member var?? what's wrong Pin
Christian Graus1-Dec-02 9:50
protectorChristian Graus1-Dec-02 9:50 
GeneralRe: friend member function can't access private member var?? what's wrong Pin
ttzzgg_807131-Dec-02 22:24
ttzzgg_807131-Dec-02 22:24 
GeneralQueue help Pin
ian_ok1-Dec-02 4:15
ian_ok1-Dec-02 4:15 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 12:56
protectorChristian Graus1-Dec-02 12:56 
GeneralRe: Queue help Pin
Dudi Avramov1-Dec-02 5:21
Dudi Avramov1-Dec-02 5:21 
GeneralRe: Queue help Pin
geo_m1-Dec-02 8:20
geo_m1-Dec-02 8:20 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 12:57
protectorChristian Graus1-Dec-02 12:57 
GeneralRe: Queue help Pin
geo_m1-Dec-02 13:24
geo_m1-Dec-02 13:24 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 13:28
protectorChristian Graus1-Dec-02 13:28 
GeneralRe: Queue help Pin
geo_m1-Dec-02 13:55
geo_m1-Dec-02 13:55 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 14:01
protectorChristian Graus1-Dec-02 14:01 
GeneralRe: Queue help Pin
ian_ok1-Dec-02 8:52
ian_ok1-Dec-02 8:52 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 12:59
protectorChristian Graus1-Dec-02 12:59 
GeneralRe: Queue help Pin
ian_ok2-Dec-02 3:29
ian_ok2-Dec-02 3:29 
GeneralRe: Queue help Pin
Gary R. Wheeler3-Dec-02 15:12
Gary R. Wheeler3-Dec-02 15:12 

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.