Access to derived class variable in C++?
<p>I am trying to access a variable inside derived class. </p>

<pre><code>     printf("%c", God.m_Please.me);
</code></pre>

<p>Inside God class declaration I have declared m_Please as </p>

<pre><code>     private:
     Please *m_Please
</code></pre>

<p>and helpme is a variable declared in a class derived from Please </p>

<pre><code>    class Help : public Please
</code></pre>

<p>and me is defined as </p>

<pre><code>    unsigned char me[1000];
</code></pre>

<p>when I try to compile this I get error </p>

<pre><code>error C2228: left of '.me' must have class/struct/union type
</code></pre>

<p>I am Using Visual Studio 6.0 </p>

<p>Please reply back.... </p>

<p>orward declare "class Please;" before God – wqking 
That helped to remove the first error :) but I still get 2 other errors </p>

<p>Thanks, </p>
