C++ Basic error with classes
<pre><code>class IEngine: public ICoreObject 
{
private:
    Network     *_Network;
    bool        _Process;

public:
    IEngine();
    ~IEngine();
    void Initial(...);
    void StartServer(unsigned short port);
    bool Process();
    void StopProcess();
    void StartProcess();
    friend void ShellCode(int id,struct NE_Bin var);

};
</code></pre>

<p>Why i cant use _Network from ShellCode ?</p>

<p>this is definition of ShellCode function</p>

<pre><code>void ShellCode(int id,struct NE_Bin var) //функция-друг
{
    std::cout&lt;&lt;"ShellFunc Delegated"&lt;&lt;std::endl;
    var.data = (void *)"T";
    var.length = 1;
    //_Network-&gt;SendMessageW(id, var);
}
</code></pre>

<p>Im trying to get to the _Network class and i get errors.</p>
