From: i96csm AT river DOT tay DOT ac DOT uk Newsgroups: comp.os.msdos.djgpp Subject: Re: rhide - help... last one :) Message-ID: <1997Aug19.144159.16@river.tay.ac.uk> Date: 19 Aug 97 14:41:59 +0100 References: <33F92811 DOT 2F51 AT usa DOT net> Organization: University of Abertay Dundee Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <33F92811 DOT 2F51 AT usa DOT net>, Gal writes: > Sorry guys for the troublesome mess... I'm in the transition of porting > code from pure assembly (80x86) and Pascal code to C++, quite a jump > isn't it? Please bear with me, I thank yee! > > ----- > Carefully I watched the "watch" of "box.length" as I traced into a > constructor. The "box.length" suddenly, from a value, turned into "not > available." > ----- > > While I was working with C++ using RHIDE, I noticed that trying to > "watch" a value from a private variable in a class gives me "not > available." I knew that instant that in C++, unlike Pascal, a class has > a private section, unless otherwise declared public. When a C++ member function calls a member function in another class, the first class goes out of scope until the second member function returns. The only work around for this is to declear the first class 'static' or as a static pointer but this has side effects, which may affect your program. > > Please tell me how to view the value while in a method (procedure) from > a class. Help? ;) From within a class, the members can be refered to by (*this) -- ___ . / /|\ /| / / | \ / | Colin S. Miller / \ | v | csmiller AT iname DOT com | \| | | \ | PgDip/MSc Software Engineering | |\ | University of Abertay \ | \ | (01382) 308000 ext 2800 \ | / | \___/ |